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:
Markus Armbruster 2017-08-24 10:46:08 +02:00
parent 5b5f825d44
commit 977c736f80
45 changed files with 121 additions and 121 deletions

View file

@ -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]);