]> Git Repo - qemu.git/commitdiff
block: drive_init(): Improve CHS setting error message
authorLuiz Capitulino <[email protected]>
Fri, 1 Jul 2011 13:46:13 +0000 (10:46 -0300)
committerKevin Wolf <[email protected]>
Tue, 5 Jul 2011 09:23:30 +0000 (11:23 +0200)
The current message doesn't clearly communicate the error cause.

Signed-off-by: Luiz Capitulino <[email protected]>
Reviewed-by: Markus Armbruster <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
blockdev.c

index 470be71cbf07bd58d3da5705ce4e80e40f67104c..a97a801e95f3bf20cc5f1157ca85dc2a29159c12 100644 (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;
This page took 0.0253 seconds and 4 git commands to generate.