makefile.am: Apply printf check only to OVS userspace.
authorJesse Gross <jesse@nicira.com>
Fri, 23 May 2014 02:15:26 +0000 (19:15 -0700)
committerJesse Gross <jesse@nicira.com>
Fri, 23 May 2014 16:19:25 +0000 (09:19 -0700)
We shouldn't restrict printf specifiers in kernel or third party
code.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
Makefile.am

index 0b59280..a98541f 100644 (file)
@@ -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"; \