qemu-img: simplify --repair error message
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-ID: <20250531171609.197078-9-mjt@tls.msk.ru> [kwolf: Added missing comma in help text] Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
d1dcf14224
commit
bf1e1cd357
1 changed files with 3 additions and 2 deletions
|
|
@ -864,8 +864,9 @@ static int img_check(const img_cmd_t *ccmd, int argc, char **argv)
|
|||
} else if (!strcmp(optarg, "all")) {
|
||||
fix = BDRV_FIX_LEAKS | BDRV_FIX_ERRORS;
|
||||
} else {
|
||||
error_exit(argv[0], "Unknown option value for -r "
|
||||
"(expecting 'leaks' or 'all'): %s", optarg);
|
||||
error_exit(argv[0],
|
||||
"--repair (-r) expects 'leaks' or 'all', not '%s'",
|
||||
optarg);
|
||||
}
|
||||
break;
|
||||
case 'U':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue