mirror of
https://github.com/AltraMayor/f3.git
synced 2025-12-13 20:39:59 +01:00
f3fix: add missing parameter in argp_error() calls
@pbludov reported and fixed this bug in the following issue: https://github.com/AltraMayor/f3/issues/26
This commit is contained in:
6
f3fix.c
6
f3fix.c
@@ -73,14 +73,16 @@ static error_t parse_opt(int key, char *arg, struct argp_state *state)
|
||||
args->disk_type = ped_disk_type_get(arg);
|
||||
if (!args->disk_type)
|
||||
argp_error(state,
|
||||
"Disk type `%s' is not supported; use --list-disk-types to see the supported types");
|
||||
"Disk type `%s' is not supported; use --list-disk-types to see the supported types",
|
||||
arg);
|
||||
break;
|
||||
|
||||
case 'f':
|
||||
args->fs_type = ped_file_system_type_get(arg);
|
||||
if (!args->fs_type)
|
||||
argp_error(state,
|
||||
"File system type `%s' is not supported; use --list-fs-types to see the supported types");
|
||||
"File system type `%s' is not supported; use --list-fs-types to see the supported types",
|
||||
arg);
|
||||
break;
|
||||
|
||||
case 'b':
|
||||
|
||||
Reference in New Issue
Block a user