From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:60687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeSwD-0007TH-PR for qemu-devel@nongnu.org; Wed, 06 Jul 2011 10:18:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QeSwB-0001Ha-MF for qemu-devel@nongnu.org; Wed, 06 Jul 2011 10:18:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:5842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeSwB-0001HL-9h for qemu-devel@nongnu.org; Wed, 06 Jul 2011 10:18:47 -0400 From: Kevin Wolf Date: Wed, 6 Jul 2011 16:21:27 +0200 Message-Id: <1309962089-7328-7-git-send-email-kwolf@redhat.com> In-Reply-To: <1309962089-7328-1-git-send-email-kwolf@redhat.com> References: <1309962089-7328-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 6/8] block: drive_init(): Improve CHS setting error message List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: kwolf@redhat.com, qemu-devel@nongnu.org From: Luiz Capitulino The current message doesn't clearly communicate the error cause. Signed-off-by: Luiz Capitulino Reviewed-by: Markus Armbruster Signed-off-by: Kevin Wolf --- blockdev.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/blockdev.c b/blockdev.c index 470be71..a97a801 100644 --- a/blockdev.c +++ b/blockdev.c @@ -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; -- 1.7.6