From ea4e9490301b774cfc01ed92d7566d899ba7e7eb Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Mon, 11 Jun 2018 20:59:24 +1000 Subject: Add marker at end of traces Signed-off-by: Benjamin Herrenschmidt --- cf-fsi-test.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cf-fsi-test.c') diff --git a/cf-fsi-test.c b/cf-fsi-test.c index bf209f3..5d05051 100644 --- a/cf-fsi-test.c +++ b/cf-fsi-test.c @@ -566,10 +566,15 @@ static void dump_stuff(void) ntohl(readl(sysreg + SRAM_BASE + INT_CNT))); for (i = 0; trace_enabled && i < 128; i++) { - printf("%02x ", readb(sysreg + SRAM_BASE + TRACEBUF + i)); + uint8_t v = readb(sysreg + SRAM_BASE + TRACEBUF + i); + printf("%02x ", v); if ((i % 16) == 15) printf("\n"); + if (v == TR_END) + break; } + if (i % 16) + printf("\n"); } static int do_command(uint32_t op) -- cgit v1.2.1