From: Jesse Gross Date: Fri, 23 May 2014 02:15:26 +0000 (-0700) Subject: makefile.am: Apply printf check only to OVS userspace. X-Git-Tag: v2.4.0~2094 X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fovs.git;a=commitdiff_plain;h=3b3f885732a8cc7424812dd65be0ed8755b70438 makefile.am: Apply printf check only to OVS userspace. We shouldn't restrict printf specifiers in kernel or third party code. Signed-off-by: Jesse Gross Acked-by: Ben Pfaff --- diff --git a/Makefile.am b/Makefile.am index 0b59280ba..a98541ff4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -209,7 +209,8 @@ config-h-check: ALL_LOCAL += printf-check printf-check: @if test -e $(srcdir)/.git && (git --version) >/dev/null 2>&1 && \ - git --no-pager grep -n -E -e '%[-+ #0-9.*]*([ztj]|hh)' --and --not -e 'ovs_scan' `git ls-files $(srcdir) | grep '\.[ch]$$'`; \ + git --no-pager grep -n -E -e '%[-+ #0-9.*]*([ztj]|hh)' --and --not -e 'ovs_scan' `git ls-files $(srcdir) | grep '\.[ch]$$' | \ + grep -vE '^datapath|^lib/sflow|^third-party'`; \ then \ echo "See above for list of violations of the rule that"; \ echo "'z', 't', 'j', 'hh' printf() type modifiers are"; \