From: Max Filippov <jcmvbkbc@gmail.com>
Date: Thu, 22 Aug 2013 14:53:06 +0000 (+0400)
Subject: raid6/test: replace echo -e with printf
X-Git-Tag: v3.12-rc1~71^2~10
X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c28399b5943a24a214a44e973a3a8002fd36442d;p=users%2Fjedix%2Flinux-maple.git

raid6/test: replace echo -e with printf

-e is a non-standard echo option, echo output is
implementation-dependent when it is used. Replace echo -e with printf as
suggested by POSIX echo manual.

Cc: NeilBrown <neilb@suse.de>
Cc: Jim Kukunas <james.t.kukunas@linux.intel.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
---

diff --git a/lib/raid6/test/Makefile b/lib/raid6/test/Makefile
index 78f89d807f4e7..cf4959276a8b8 100644
--- a/lib/raid6/test/Makefile
+++ b/lib/raid6/test/Makefile
@@ -28,7 +28,7 @@ ifeq ($(IS_X86),yes)
                     gcc -c -x assembler - >&/dev/null &&	\
                     rm ./-.o && echo -DCONFIG_AS_AVX2=1)
 else
-        HAS_ALTIVEC := $(shell echo -e '\#include <altivec.h>\nvector int a;' |\
+        HAS_ALTIVEC := $(shell printf '\#include <altivec.h>\nvector int a;\n' |\
                          gcc -c -x c - >&/dev/null && \
                          rm ./-.o && echo yes)
         ifeq ($(HAS_ALTIVEC),yes)