Skip to contentSkip to conversation

master - lvmdump: replace printf

PATCH Zdenek Kabelac 1 participant 1 message Jun 29, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=e08e714b68cce5b46fe47af7716a6d5236f5c683
Commit:        e08e714b68cce5b46fe47af7716a6d5236f5c683
Parent:        e292c1a1cac4edc394fe9daa9ef11b691216740d
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Wed Jun 28 20:54:00 2017 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Thu Jun 29 22:23:16 2017 +0200

lvmdump: replace printf

Don't use variables in the printf format string. Use printf "..%s.." "$foo". Advice replaced with plain 'echo'.

---
 scripts/lvmdump.sh.in |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
scripts/lvmdump.sh.in +2 -1
index 6744058..143b819 100644
@@ -164,7 +164,8 @@ if (( $clustered )); then
 	{
 	for i in nodes status services; do
 		cap_i=$(echo $i|tr a-z A-Z)
-		printf "$cap_i:\n----------------------------------\n"
+		echo "$cap_i:"
+		echo "----------------------------------"
 		log "cman_tool $i 2>> \"$log\""
 		echo
 	done