diff options
author | Rashmica Gupta <rashmica.g@gmail.com> | 2018-10-05 13:45:51 +1000 |
---|---|---|
committer | Alistair Popple <alistair@popple.id.au> | 2018-10-15 15:43:29 +1100 |
commit | 96d6ed33f06075054d04c4096f51b0b8dfb4e854 (patch) | |
tree | 038ce566fb52f71e89a9c97f3e0771f4f9dc10eb /libpdbg/p8chip.c | |
parent | 4b61c6935375be198707c1803b5423acb83a71ba (diff) | |
download | pdbg-96d6ed33f06075054d04c4096f51b0b8dfb4e854.tar.gz pdbg-96d6ed33f06075054d04c4096f51b0b8dfb4e854.zip |
libpdbg/p8chip: Add in debug messages
Signed-off-by: Rashmica Gupta <rashmica.g@gmail.com>
Reviewed-by: Alistair Popple <alistair@popple.id.au>
Diffstat (limited to 'libpdbg/p8chip.c')
-rw-r--r-- | libpdbg/p8chip.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |