Skip to contentSkip to conversation

partx: use USAGE_ macros

PATCH Applied Davidlohr Bueso 2 participants 2 messages Oct 26, 2011 – Nov 2, 2011 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 partx: use USAGE_ macros

From: Davidlohr Bueso <[email protected]>

---
 partx/partx.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
partx/partx.c +3 -2
index b12eebc..c730e37 100644
@@ -604,7 +604,8 @@ static void __attribute__((__noreturn__)) usage(FILE *out)
 {
 	int i;
 
-	fputs(_("\nUsage:\n"), out);
+	fputs(USAGE_HEADER, out);
+
 	fprintf(out,
 	      _(" %s [-a|-d|-s] [--nr <n:m> | <partition>] <disk>\n"),
 		program_invocation_short_name);
@@ -629,7 +630,7 @@ static void __attribute__((__noreturn__)) usage(FILE *out)
 	for (i = 0; i < NCOLS; i++)
 		fprintf(out, " %10s  %s\n", infos[i].name, _(infos[i].help));
 
-	fprintf(out, _("\nFor more information see partx(8).\n"));
+	fprintf(out, USAGE_MAN_TAIL("partx(8)"));
 
 	exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
 }
Signature · 1 line
1.7.7
maintainer Applied
#1 lore raw
Quoted 2 lines · Davidlohr Bueso
 partx/partx.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

Applied, thanks.

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com