From efe030d66c1c8a892bec165e2d181ef157117f11 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Thu, 15 Mar 2012 22:58:09 +0100 Subject: [PATCH] findfs: add --version & align with howto-usage-function.txt Signed-off-by: Sami Kerola --- misc-utils/findfs.c | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/misc-utils/findfs.c b/misc-utils/findfs.c index 04651b3a5..761c6e91f 100644 --- a/misc-utils/findfs.c +++ b/misc-utils/findfs.c @@ -16,12 +16,15 @@ static void __attribute__((__noreturn__)) usage(int rc) { - const char *p = program_invocation_short_name; - - if (!p) - p = "findfs"; - - fprintf(stderr, _("Usage: %s LABEL=