aboutsummaryrefslogtreecommitdiff
path: root/hw/riscv/virt.c
diff options
context:
space:
mode:
authorMao Zhongyi <maozhongyi@cmss.chinamobile.com>2018-09-20 22:05:30 -0400
committerMarkus Armbruster <armbru@redhat.com>2018-09-24 17:13:07 +0200
commit371b74e2215fde31cc22d23dfa710e11bb906038 (patch)
tree87d35b5528eae27f7e212674e764aed67a07fa37 /hw/riscv/virt.c
parentc6c594596eabc80f6e54d96c56f01f8531d389b5 (diff)
downloadqemu-371b74e2215fde31cc22d23dfa710e11bb906038.zip
qemu-371b74e2215fde31cc22d23dfa710e11bb906038.tar.gz
qemu-371b74e2215fde31cc22d23dfa710e11bb906038.tar.bz2
Drop "qemu:" prefix from error_report() arguments
error_report and friends already add a "qemu-system-xxx" prefix to the string, so a "qemu:" prefix is redundant in the string. Just drop it. Reported-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Mao Zhongyi <maozhongyi@cmss.chinamobile.com> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <1537495530-580-1-git-send-email-maozhongyi@cmss.chinamobile.com> Acked-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'hw/riscv/virt.c')
-rw-r--r--hw/riscv/virt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c
index 248bbdf..818a537 100644
--- a/hw/riscv/virt.c
+++ b/hw/riscv/virt.c
@@ -64,7 +64,7 @@ static uint64_t load_kernel(const char *kernel_filename)
if (load_elf(kernel_filename, NULL, NULL,
&kernel_entry, NULL, &kernel_high,
0, EM_RISCV, 1, 0) < 0) {
- error_report("qemu: could not load kernel '%s'", kernel_filename);
+ error_report("could not load kernel '%s'", kernel_filename);
exit(1);
}
return kernel_entry;
@@ -91,7 +91,7 @@ static hwaddr load_initrd(const char *filename, uint64_t mem_size,
if (size == -1) {
size = load_image_targphys(filename, *start, mem_size - *start);
if (size == -1) {
- error_report("qemu: could not load ramdisk '%s'", filename);
+ error_report("could not load ramdisk '%s'", filename);
exit(1);
}
}