diff mbox

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

Message ID 1500389610-5540-3-git-send-email-majopela@redhat.com
State Not Applicable, archived
Headers show

Commit Message

Miguel Angel Ajo July 18, 2017, 2:53 p.m. UTC
From: Ben Pfaff <blp@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@ovn.org>
Fixes: 27d41afaa446 ("acinclude.m4: Avoid echo -n")
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Justin Pettit <jpettit@ovn.org>
---
 acinclude.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

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