[08/11] htm: Print chip being targeted properly

Message ID 20180607065438.18257-8-mikey@neuling.org
State Accepted
Headers show
Series
  • [01/11] Cleanup exit code
Related show

Commit Message

Michael Neuling June 7, 2018, 6:54 a.m.
Signed-off-by: Michael Neuling <mikey@neuling.org>
---
 src/htm.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

Patch

diff --git a/src/htm.c b/src/htm.c
index 4c1f7446ad..80cdec27b1 100644
--- a/src/htm.c
+++ b/src/htm.c
@@ -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)