[ovs-dev] [PATCH v1 3/4] acinclude.m4: Avoid error from printf.

Miguel Angel Ajo majopela at redhat.com
Tue Jul 18 14:53:29 UTC 2017


From: Ben Pfaff <blp at ovn.org>

GNU (at least) printf interprets -I as an option, but we want to print it
literally, so use %s.

CC: YAMAMOTO Takashi <yamamoto at ovn.org>
Fixes: 27d41afaa446 ("acinclude.m4: Avoid echo -n")
Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Justin Pettit <jpettit at ovn.org>
---
 acinclude.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/acinclude.m4 b/acinclude.m4
index 05c57b8..e7affc5 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -968,7 +968,7 @@ dnl ctags ignores symbols with extras identifiers. This builds a list of
 dnl specially handled identifiers to be ignored.
 AC_DEFUN([OVS_CTAGS_IDENTIFIERS],
     AC_SUBST([OVS_CTAGS_IDENTIFIERS_LIST],
-           [`printf '-I "'; sed -n 's/^#define \(OVS_[A-Z_]\+\)(\.\.\.)$/\1+/p' ${srcdir}/include/openvswitch/compiler.h  | tr \\\n ' ' ; printf '"'`] ))
+           [`printf %s '-I "'; sed -n 's/^#define \(OVS_[A-Z_]\+\)(\.\.\.)$/\1+/p' ${srcdir}/include/openvswitch/compiler.h  | tr \\\n ' ' ; printf '"'`] ))
 
 dnl OVS_PTHREAD_SET_NAME
 dnl
-- 
1.8.3.1



More information about the dev mailing list