]> git.proxmox.com Git - qemu.git/commitdiff
hw/arm_sysctl: Use LOG_GUEST_ERROR
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 30 Oct 2012 07:45:10 +0000 (07:45 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 30 Oct 2012 07:45:10 +0000 (07:45 +0000)
Use LOG_GUEST_ERROR to report bad guest accesses.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm_sysctl.c

index 26318e14d5b0cd3212263b70c88d776d1b0320ba..58eb98216d1c288fb873e847520f148cd7ea593f 100644 (file)
@@ -184,7 +184,9 @@ static uint64_t arm_sysctl_read(void *opaque, hwaddr offset,
         return s->sys_cfgstat;
     default:
     bad_reg:
-        printf ("arm_sysctl_read: Bad register offset 0x%x\n", (int)offset);
+        qemu_log_mask(LOG_GUEST_ERROR,
+                      "arm_sysctl_read: Bad register offset 0x%x\n",
+                      (int)offset);
         return 0;
     }
 }
@@ -339,7 +341,9 @@ static void arm_sysctl_write(void *opaque, hwaddr offset,
         return;
     default:
     bad_reg:
-        printf ("arm_sysctl_write: Bad register offset 0x%x\n", (int)offset);
+        qemu_log_mask(LOG_GUEST_ERROR,
+                      "arm_sysctl_write: Bad register offset 0x%x\n",
+                      (int)offset);
         return;
     }
 }