[Pdbg] [PATCH] libpdbg/p8chip: Add in debug messages
Rashmica Gupta
rashmica.g at gmail.com
Fri Oct 5 13:45:51 AEST 2018
---
libpdbg/p8chip.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libpdbg/p8chip.c b/libpdbg/p8chip.c
index 2f1d599..f6df925 100644
--- a/libpdbg/p8chip.c
+++ b/libpdbg/p8chip.c
@@ -514,8 +514,11 @@ static int p8_enable_attn(struct pdbg_target *target)
PR_ERROR("Unable to get HID0\n");
return 1;
}
+ PR_INFO("HID0 was 0x%"PRIx64 " \n", hid0);
+
hid0 |= EN_ATTN;
+ PR_INFO("writing 0x%"PRIx64 " to HID0\n", hid0);
if (p8_put_hid0(core, hid0)) {
PR_ERROR("Unable to set HID0\n");
return 1;
--
2.14.4
More information about the Pdbg
mailing list