block: drive_init(): Improve CHS setting error message
The current message doesn't clearly communicate the error cause. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
2d3999fe13
commit
e7ff8f0e0c
@ -310,7 +310,7 @@ DriveInfo *drive_init(QemuOpts *opts, int default_to_scsi)
|
|||||||
media = MEDIA_DISK;
|
media = MEDIA_DISK;
|
||||||
} else if (!strcmp(buf, "cdrom")) {
|
} else if (!strcmp(buf, "cdrom")) {
|
||||||
if (cyls || secs || heads) {
|
if (cyls || secs || heads) {
|
||||||
error_report("'%s' invalid physical CHS format", buf);
|
error_report("CHS can't be set with media=%s", buf);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
media = MEDIA_CDROM;
|
media = MEDIA_CDROM;
|
||||||
|
Loading…
Reference in New Issue
Block a user