diff options
| author | Michael Neuling <mikey@neuling.org> | 2018-06-07 16:54:35 +1000 |
|---|---|---|
| committer | Alistair Popple <alistair@popple.id.au> | 2018-06-15 14:31:01 +1000 |
| commit | 1d65f71ea32a722b221707e1d3a9f7a108c37be5 (patch) | |
| tree | b6c681ccb3129299e20a7fae54264d74f582da11 /src | |
| parent | c967a4c48228514c9553b35c52a756af37d80502 (diff) | |
| download | pdbg-1d65f71ea32a722b221707e1d3a9f7a108c37be5.tar.gz pdbg-1d65f71ea32a722b221707e1d3a9f7a108c37be5.zip | |
htm: Print chip being targeted properly
Signed-off-by: Michael Neuling <mikey@neuling.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/htm.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -34,6 +34,7 @@ #include <ccan/array_size/array_size.h> #include <libpdbg.h> +#include <device.h> #include <bitutils.h> #include "main.h" @@ -53,9 +54,11 @@ enum htm_type { static inline void print_htm_address(enum htm_type type, struct pdbg_target *target) { - if (type == HTM_CORE) - printf("%d#", pdbg_parent_index(target, "core")); - printf("%d\n", pdbg_target_index(target)); + if (type == HTM_CORE) { + printf("p%d:", pdbg_parent_index(target, "pib")); + printf("c%d:", pdbg_parent_index(target, "core")); + } + printf("t%d\n", pdbg_target_index(target)); } static char *get_htm_dump_filename(void) |

