sim-card
/
qemu
Archived
10
0
Fork 0

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:
Luiz Capitulino 2011-07-01 10:46:13 -03:00 committed by Kevin Wolf
parent 2d3999fe13
commit e7ff8f0e0c
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ DriveInfo *drive_init(QemuOpts *opts, int default_to_scsi)
media = MEDIA_DISK;
} else if (!strcmp(buf, "cdrom")) {
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;
}
media = MEDIA_CDROM;