summaryrefslogtreecommitdiffstats
path: root/drivers/bios_emulator/include/x86emu/debug.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-11-14 20:56:43 -0700
committerSimon Glass <sjg@chromium.org>2014-11-25 07:11:17 -0700
commit8c6ec412b450ad790fc373674a34313c8f6e3f6e (patch)
tree882cbd362c562a41f3eb689a6a45b3d95e19a69c /drivers/bios_emulator/include/x86emu/debug.h
parentb3521f2e495c8cd91226af9b34f2d7ef5a24c665 (diff)
downloadblackbird-obmc-uboot-8c6ec412b450ad790fc373674a34313c8f6e3f6e.tar.gz
blackbird-obmc-uboot-8c6ec412b450ad790fc373674a34313c8f6e3f6e.zip
bios_emulator: Always print errors when opcode decode fails
This is a rare event and should not happen. When it does it is confusing to work out why. At least we should print a message. Adjust the emulator to always print decode errors to the console. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/bios_emulator/include/x86emu/debug.h')
-rw-r--r--drivers/bios_emulator/include/x86emu/debug.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/bios_emulator/include/x86emu/debug.h b/drivers/bios_emulator/include/x86emu/debug.h
index 12d6c7ffd7..304b2bf007 100644
--- a/drivers/bios_emulator/include/x86emu/debug.h
+++ b/drivers/bios_emulator/include/x86emu/debug.h
@@ -99,7 +99,11 @@
# define DEBUG_DECODE_NOPRINT() 0
#endif
-#ifdef CONFIG_X86EMU_DEBUG
+# define ERR_PRINTF(x) printf(x)
+# define ERR_PRINTF2(x, y) printf(x, y)
+
+#ifdef CONFIG_X86EMU_DEBUG103
+
# define DECODE_PRINTF(x) if (DEBUG_DECODE()) \
x86emu_decode_printf(x)
OpenPOWER on IntegriCloud