blockdev: Fix error message for invalid -drive CHS
authorMarkus Armbruster <armbru@redhat.com>
Mon, 17 Jan 2011 18:31:26 +0000 (19:31 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 24 Jan 2011 15:49:49 +0000 (16:49 +0100)
commit483848540557aef6af08adbe3ef8201b961220d5
treed610f1fc630b132f8985f99ec5cf0bd1348ee4b5
parent77358b59f6f3ef571fb2262f5f6216e179d07ecb
blockdev: Fix error message for invalid -drive CHS

When cyls, heads or secs are out of range, the error message prints
buf, which points to the value of option "if".  Bogus, may even be
null.  Drop that.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c