diff options
author | Markus Armbruster <armbru@redhat.com> | 2013-02-08 21:22:14 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-02-11 08:13:18 -0600 |
commit | 474c21349fdde3c477357c2317ca6ad50872827b (patch) | |
tree | 27792cabdaf5f32a58dc6606f67dc09b8deb0a47 | |
parent | 2da2e52dce73c5e3a916bcc8e86451ed64f557d8 (diff) | |
download | qemu-474c21349fdde3c477357c2317ca6ad50872827b.zip qemu-474c21349fdde3c477357c2317ca6ad50872827b.tar.gz qemu-474c21349fdde3c477357c2317ca6ad50872827b.tar.bz2 |
error: Clean up error strings with embedded newlines
The arguments of error_report() should yield a short error string
without newlines.
A few places try to print additional help after the error message by
embedding newlines in the error string. That's nice, but let's do it
the right way.
Since I'm touching these lines anyway, drop a stray preposition and
some tabs. We don't use tabs for similar messages elsewhere.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-id: 1360354939-10994-2-git-send-email-armbru@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | hw/kvm/pci-assign.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/hw/kvm/pci-assign.c b/hw/kvm/pci-assign.c index 896cfe8..da64b5b 100644 --- a/hw/kvm/pci-assign.c +++ b/hw/kvm/pci-assign.c @@ -936,8 +936,8 @@ retry: /* Retry with host-side MSI. There might be an IRQ conflict and * either the kernel or the device doesn't support sharing. */ error_report("Host-side INTx sharing not supported, " - "using MSI instead.\n" - "Some devices do not to work properly in this mode."); + "using MSI instead"); + error_printf("Some devices do not work properly in this mode.\n"); dev->features |= ASSIGNED_DEVICE_PREFER_MSI_MASK; goto retry; } @@ -1903,10 +1903,10 @@ static void assigned_dev_load_option_rom(AssignedDevice *dev) memset(ptr, 0xff, st.st_size); if (!fread(ptr, 1, st.st_size, fp)) { - error_report("pci-assign: Cannot read from host %s\n" - "\tDevice option ROM contents are probably invalid " - "(check dmesg).\n\tSkip option ROM probe with rombar=0, " - "or load from file with romfile=", rom_file); + error_report("pci-assign: Cannot read from host %s", rom_file); + error_printf("Device option ROM contents are probably invalid " + "(check dmesg).\nSkip option ROM probe with rombar=0, " + "or load from file with romfile=\n"); memory_region_destroy(&dev->dev.rom); goto close_rom; } |