Remove superfluous '\n' around error_report()

Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
Gonglei 2015-02-25 12:22:31 +08:00 committed by Michael Tokarev
parent 01bbbcf41f
commit 81b07353c5
6 changed files with 6 additions and 6 deletions

2
exec.c
View File

@ -1188,7 +1188,7 @@ static void *file_ram_alloc(RAMBlock *block,
error: error:
if (mem_prealloc) { if (mem_prealloc) {
error_report("%s\n", error_get_pretty(*errp)); error_report("%s", error_get_pretty(*errp));
exit(1); exit(1);
} }
return NULL; return NULL;

View File

@ -99,7 +99,7 @@ static int32_t bmdma_prepare_buf(IDEDMA *dma, int is_write)
* This should accommodate the largest ATA transaction * This should accommodate the largest ATA transaction
* for LBA48 (65,536 sectors) and 32K sector sizes. */ * for LBA48 (65,536 sectors) and 32K sector sizes. */
if (s->sg.size > INT32_MAX) { if (s->sg.size > INT32_MAX) {
error_report("IDE: sglist describes more than 2GiB.\n"); error_report("IDE: sglist describes more than 2GiB.");
break; break;
} }
bm->cur_prd_addr += l; bm->cur_prd_addr += l;

View File

@ -185,7 +185,7 @@ void microblaze_load_kernel(MicroBlazeCPU *cpu, hwaddr ddr_base,
ram_size - initrd_offset); ram_size - initrd_offset);
} }
if (initrd_size < 0) { if (initrd_size < 0) {
error_report("qemu: could not load initrd '%s'\n", error_report("qemu: could not load initrd '%s'",
initrd_filename); initrd_filename);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }

View File

@ -1626,7 +1626,7 @@ static int qemu_rdma_exchange_get_response(RDMAContext *rdma,
return -EIO; return -EIO;
} }
if (head->len > RDMA_CONTROL_MAX_BUFFER - sizeof(*head)) { if (head->len > RDMA_CONTROL_MAX_BUFFER - sizeof(*head)) {
error_report("too long length: %d\n", head->len); error_report("too long length: %d", head->len);
return -EINVAL; return -EINVAL;
} }
if (sizeof(*head) + head->len != byte_len) { if (sizeof(*head) + head->len != byte_len) {

View File

@ -211,7 +211,7 @@ void kvm_s390_reset_vcpu(S390CPU *cpu)
* Before this ioctl cpu_synchronize_state() is called in common kvm * Before this ioctl cpu_synchronize_state() is called in common kvm
* code (kvm-all) */ * code (kvm-all) */
if (kvm_vcpu_ioctl(cs, KVM_S390_INITIAL_RESET, NULL)) { if (kvm_vcpu_ioctl(cs, KVM_S390_INITIAL_RESET, NULL)) {
error_report("Initial CPU reset failed on CPU %i\n", cs->cpu_index); error_report("Initial CPU reset failed on CPU %i", cs->cpu_index);
} }
} }

View File

@ -126,7 +126,7 @@ static void trace_init_events(const char *fname)
error_report("WARNING: trace event '%s' does not exist", error_report("WARNING: trace event '%s' does not exist",
line_ptr); line_ptr);
} else if (!trace_event_get_state_static(ev)) { } else if (!trace_event_get_state_static(ev)) {
error_report("WARNING: trace event '%s' is not traceable\n", error_report("WARNING: trace event '%s' is not traceable",
line_ptr); line_ptr);
} else { } else {
trace_event_set_state_dynamic(ev, enable); trace_event_set_state_dynamic(ev, enable);