X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=misc-utils%2Fblkid.c;h=88a90578b030b1658860ed5fedadeefd3a3c11da;hb=e72eea70c452cf1b820aae4b942e82ab5e0e7326;hp=f95f673a2ebe71a264c8f91d165b4d5ce581e8a2;hpb=3b7693cadac203133ad3a13013d507dbc6c1b6b7;p=thirdparty%2Futil-linux.git diff --git a/misc-utils/blkid.c b/misc-utils/blkid.c index f95f673a2e..88a90578b0 100644 --- a/misc-utils/blkid.c +++ b/misc-utils/blkid.c @@ -34,7 +34,6 @@ #include "ismounted.h" -#define STRTOXX_EXIT_CODE BLKID_EXIT_OTHER /* strtoxx_or_err() */ #include "strutils.h" #define OPTUTILS_EXIT_CODE BLKID_EXIT_OTHER /* exclusive_option() */ #include "optutils.h" @@ -43,6 +42,8 @@ #include "nls.h" #include "ttyutils.h" + +#define XALLOC_EXIT_CODE BLKID_EXIT_OTHER /* x.*alloc(), xstrndup() */ #include "xalloc.h" struct blkid_control { @@ -57,19 +58,13 @@ struct blkid_control { lowprobe:1, lowprobe_superblocks:1, lowprobe_topology:1, + no_part_details:1, raw_chars:1; }; -static void print_version(FILE *out) +static void __attribute__((__noreturn__)) usage(void) { - fprintf(out, _("%s from %s (libblkid %s, %s)\n"), - program_invocation_short_name, PACKAGE_STRING, - LIBBLKID_VERSION, LIBBLKID_DATE); -} - -static void usage(int error) -{ - FILE *out = error ? stderr : stdout; + FILE *out = stdout; fputs(USAGE_HEADER, out); fprintf(out, _( " %s --label