Patchwork [v2,4/8] hw/pl041: Use LOG_UNIMP

login
register
mail settings
Submitter Peter Maydell
Date Oct. 18, 2012, 1:11 p.m.
Message ID <1350565902-23940-5-git-send-email-peter.maydell@linaro.org>
Download mbox | patch
Permalink /patch/192323/
State New
Headers show

Comments

Peter Maydell - Oct. 18, 2012, 1:11 p.m.
Use the new LOG_UNIMP tracing to report unimplemented
features.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 hw/pl041.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Patch

diff --git a/hw/pl041.c b/hw/pl041.c
index b6723be..9a6db1b 100644
--- a/hw/pl041.c
+++ b/hw/pl041.c
@@ -536,8 +536,9 @@  static int pl041_init(SysBusDevice *dev)
     default:
         /* NC FIFO depth of 16 is not allowed because its id bits in
            AACIPERIPHID3 overlap with the id for the default NC FIFO depth */
-        fprintf(stderr, "pl041: unsupported non-compact fifo depth [%i]\n",
-                s->fifo_depth);
+        qemu_log_mask(LOG_UNIMP,
+                      "pl041: unsupported non-compact fifo depth [%i]\n",
+                      s->fifo_depth);
         return -1;
     }