mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
qapi: Mechanically convert FOO_lookup[...] to FOO_str(...)
Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <1503564371-26090-14-git-send-email-armbru@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
5b5f825d44
commit
977c736f80
45 changed files with 121 additions and 121 deletions
|
@ -392,9 +392,9 @@ static int pick_geometry(FDrive *drv)
|
|||
FLOPPY_DPRINTF("User requested floppy drive type '%s', "
|
||||
"but inserted medium appears to be a "
|
||||
"%"PRId64" sector '%s' type\n",
|
||||
FloppyDriveType_lookup[drv->drive],
|
||||
FloppyDriveType_str(drv->drive),
|
||||
nb_sectors,
|
||||
FloppyDriveType_lookup[parse->drive]);
|
||||
FloppyDriveType_str(parse->drive));
|
||||
}
|
||||
match = type_match;
|
||||
}
|
||||
|
@ -403,7 +403,7 @@ static int pick_geometry(FDrive *drv)
|
|||
if (match == -1) {
|
||||
error_setg(&error_abort, "No candidate geometries present in table "
|
||||
" for floppy drive type '%s'",
|
||||
FloppyDriveType_lookup[drv->drive]);
|
||||
FloppyDriveType_str(drv->drive));
|
||||
}
|
||||
|
||||
parse = &(fd_formats[match]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue