From 450ac7be4297012d57880e39261eda726cb75eba Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 14 Jun 2013 21:48:33 +0200 Subject: [PATCH] cleanup: move string in the use-place --- tools/pvremove.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/pvremove.c b/tools/pvremove.c index cbbf6e2c4..2c8f5c617 100644 --- a/tools/pvremove.c +++ b/tools/pvremove.c @@ -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; } -- 2.43.5