mirror of
https://github.com/kdave/btrfs-progs
synced 2025-01-11 08:19:32 +00:00
btrfs-progs: find-root: rename usage helper
This would clash with the generic usage from commands.h. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
c928522052
commit
e235f12de2
@ -36,7 +36,7 @@
|
|||||||
#include "extent-cache.h"
|
#include "extent-cache.h"
|
||||||
#include "find-root.h"
|
#include "find-root.h"
|
||||||
|
|
||||||
static void usage(void)
|
static void find_root_usage(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Usage: find-roots [-a] [-o search_objectid] "
|
fprintf(stderr, "Usage: find-roots [-a] [-o search_objectid] "
|
||||||
"[ -g search_generation ] [ -l search_level ] <device>\n");
|
"[ -g search_generation ] [ -l search_level ] <device>\n");
|
||||||
@ -179,14 +179,14 @@ int main(int argc, char **argv)
|
|||||||
break;
|
break;
|
||||||
case GETOPT_VAL_HELP:
|
case GETOPT_VAL_HELP:
|
||||||
default:
|
default:
|
||||||
usage();
|
find_root_usage();
|
||||||
exit(c != GETOPT_VAL_HELP);
|
exit(c != GETOPT_VAL_HELP);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
set_argv0(argv);
|
set_argv0(argv);
|
||||||
if (check_argc_min(argc - optind, 1)) {
|
if (check_argc_min(argc - optind, 1)) {
|
||||||
usage();
|
find_root_usage();
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user