From 9edf808e350b0cd7fb153ae4a27589ef013d01cf Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Mon, 25 Nov 2019 14:44:47 -0800 Subject: mvebu: gen_mvebu_sdcard_img.sh: don't use format directly in printf Enables proper checking. Matches printf behavior in C. Found with shellcheck. Signed-off-by: Rosen Penev [add prefix to commit title] Signed-off-by: Adrian Schmutzler --- target/linux/mvebu/image/gen_mvebu_sdcard_img.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target/linux/mvebu/image/gen_mvebu_sdcard_img.sh') diff --git a/target/linux/mvebu/image/gen_mvebu_sdcard_img.sh b/target/linux/mvebu/image/gen_mvebu_sdcard_img.sh index c93a2bd6e2..277c9377c1 100755 --- a/target/linux/mvebu/image/gen_mvebu_sdcard_img.sh +++ b/target/linux/mvebu/image/gen_mvebu_sdcard_img.sh @@ -41,7 +41,7 @@ if [ -n "$BOOTLOADER" ]; then fi # generate image file -printf "Creating $OUTFILE from /dev/zero: " +printf "Creating %s from /dev/zero: " "$OUTFILE" dd if=/dev/zero of="$OUTFILE" bs=512 count=1 >/dev/null printf "Done\n" -- cgit v1.2.3