Skip to contentSkip to conversation

master - cleanup: move string in the use-place

PATCH Zdenek Kabelac 1 participant 1 message Jun 15, 2013

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=450ac7be4297012d57880e39261eda726cb75eba
Commit:        450ac7be4297012d57880e39261eda726cb75eba
Parent:        17a3ddf89e4148b4fdfe32c2da22beff7b1ca465
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Jun 14 21:48:33 2013 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Sun Jun 16 00:07:33 2013 +0200

cleanup: move string in the use-place

---
 tools/pvremove.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
tools/pvremove.c +3 -4
index cbbf6e2..2c8f5c6 100644
@@ -15,9 +15,6 @@
 
 #include "tools.h"
 
-const char _really_wipe[] =
-    "Really WIPE LABELS from physical volume \"%s\" of volume group \"%s\" [y/n]? ";
-
 /*
  * Decide whether it is "safe" to wipe the labels on this device.
  * 0 indicates we may not.
@@ -74,7 +71,9 @@ static int pvremove_check(struct cmd_context *cmd, const char *name)
 
 	/* prompt */
 	if (!arg_count(cmd, yes_ARG) &&
-	    yes_no_prompt(_really_wipe, name, pv_vg_name(pv)) == 'n') {
+	    yes_no_prompt("Really WIPE LABELS from physical volume \"%s\" "
+			  "of volume group \"%s\" [y/n]? ",
+			  name, pv_vg_name(pv)) == 'n') {
 		log_error("%s: physical volume label not removed", name);
 		goto bad;
 	}