switch (s->fat_type) {
case 32:
- warn_report("FAT32 has not been tested. "
- "You are welcome to do so!");
+ warn_report("FAT32 has not been tested. You are welcome to do so!");
break;
case 16:
case 12:
* happen with older device tree blobs.
*/
warn_report("couldn't find interrupt controller in "
- "dtb; will not include virtio-mmio devices in the dtb.");
+ "dtb; will not include virtio-mmio devices in the dtb");
} else {
int i;
const hwaddr *map = daughterboard->motherboard_map;
if (rlimit_as.rlim_max != RLIM_INFINITY) {
warn_report("QEMU's maximum size of virtual"
- " memory is not infinity.");
+ " memory is not infinity");
}
if (rlimit_as.rlim_max < MCACHE_MAX_SIZE + NON_MCACHE_MEMORY_SIZE) {
mapcache->max_mcache_size = rlimit_as.rlim_max -
}
if (ram_size) {
- warn_report("SPD cannot represent final %dMB"
- " of SDRAM", (int)ram_size);
+ warn_report("SPD cannot represent final " RAM_ADDR_FMT "MB"
+ " of SDRAM", ram_size);
}
/* fill in SPD memory information */
}
} else if (!qtest_enabled()) {
/* not fatal */
- warn_report("could not load MIPS bios '%s'",
- bios_name);
+ warn_report("could not load MIPS bios '%s'", bios_name);
}
g_free(filename);
r = s390_get_clock(&tod_high, &tod_low);
if (r) {
- warn_report("Unable to get guest clock for migration. "
- "Error code %d. Guest clock will not be migrated "
- "which could cause the guest to hang.", r);
+ warn_report("Unable to get guest clock for migration: %s",
+ strerror(-r));
+ error_printf("Guest clock will not be migrated "
+ "which could cause the guest to hang.");
qemu_put_byte(f, S390_TOD_CLOCK_VALUE_MISSING);
return;
}
r = s390_set_clock(&tod_high, &tod_low);
if (r) {
- warn_report("Unable to set guest clock value. "
- "s390_get_clock returned error %d. This could cause "
- "the guest to hang.", r);
+ warn_report("Unable to set guest clock for migration: %s",
+ strerror(-r));
+ error_printf("Guest clock will not be restored "
+ "which could cause the guest to hang.");
}
return 0;
QLIST_FOREACH(port, &hub->ports, next) {
peer = port->nc.peer;
if (!peer) {
- warn_report("hub port %s has no peer",
- port->nc.name);
+ warn_report("hub port %s has no peer", port->nc.name);
continue;
}
warn_report("vlan %d with no nics", hub->id);
}
if (has_nic && !has_host_dev) {
- warn_report("vlan %d is not connected to host network",
- hub->id);
+ warn_report("vlan %d is not connected to host network", hub->id);
}
}
}
QTAILQ_FOREACH(nc, &net_clients, next) {
if (!nc->peer) {
warn_report("%s %s has no peer",
- nc->info->type == NET_CLIENT_DRIVER_NIC ?
- "nic" : "netdev", nc->name);
+ nc->info->type == NET_CLIENT_DRIVER_NIC
+ ? "nic" : "netdev",
+ nc->name);
}
}
#include "cpu.h"
#include "exec/address-spaces.h"
#include "exec/exec-all.h"
+#include "qemu/error-report.h"
#include "target/i386/hax-i386.h"
#include "qemu/queue.h"
if (!memory_region_is_ram(mr)) {
if (memory_region_is_romd(mr)) {
/* HAXM kernel module does not support ROMD yet */
- warn_report("Ignoring ROMD region 0x%016" PRIx64
- "->0x%016" PRIx64 "", __func__, start_pa,
- start_pa + size);
+ warn_report("Ignoring ROMD region 0x%016" PRIx64 "->0x%016" PRIx64,
+ start_pa, start_pa + size);
}
return;
}
}
#endif
if (env->check_pow == NULL) {
- warn_report("no power management check handler "
- "registered."
+ warn_report("no power management check handler registered."
" Attempt QEMU to crash very soon !");
}
}
if (keysym < MAX_NORMAL_KEYCODE) {
if (k->keysym2keycode[keysym] == 0) {
trace_keymap_unmapped(keysym);
- warn_report("no scancode found for keysym %d",
- keysym);
+ warn_report("no scancode found for keysym %d", keysym);
}
return k->keysym2keycode[keysym];
} else {