Re: [PATCH] maint: Prohibit "devname" by a syntax check rules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/01/2014 08:14 AM, Peter Krempa wrote:
> and tweak the code to avoid using it.
> ---
>  cfg.mk                                 | 12 ++++++++++++
>  include/libvirt/libvirt.h.in           |  2 +-
>  src/conf/interface_conf.c              | 10 +++++-----
>  src/conf/interface_conf.h              |  2 +-
>  src/interface/interface_backend_udev.c |  2 +-
>  src/qemu/qemu_monitor.c                |  4 ++--
>  src/qemu/qemu_monitor.h                |  6 +++---
>  src/util/virfile.c                     |  6 +++---
>  tools/virsh-domain.c                   |  4 ++--
>  tools/virt-host-validate-common.h      |  2 +-
>  10 files changed, 31 insertions(+), 19 deletions(-)
> 
> diff --git a/cfg.mk b/cfg.mk
> index ed7123b..8e99d04 100644
> --- a/cfg.mk
> +++ b/cfg.mk
> @@ -962,6 +962,15 @@ sc_prohibit_paren_brace:
>  	halt='Put space between closing parenthesis and opening brace'	\
>  	  $(_sc_search_regexp)
> 
> +# Look for diagnostics that aren't marked for translation.
> +# This won't find any for which error's format string is on a separate line.
> +# The sed filters eliminate false-positives like these:

Comment is wrong.

> +sc_prohibit_devname:
> +	@prohibit='\bdevname\b'			\
> +	exclude='sc_prohibit_devname'	\
> +	halt='avoid using 'devname' as FreeBSD exports the symbol'	\
> +	  $(_sc_search_regexp)

Alignment of \ looks odd, but the rule itself looks okay.

ACK with that cleaned up.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]