[umr] Simple tidy up of PKT0 data printout.

Submitted by StDenis, Tom on July 13, 2017, 1:58 p.m.


Message ID 20170713135800.17782-1-tom.stdenis@amd.com
State New
Headers show
Series "Simple tidy up of PKT0 data printout." ( rev: 1 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

StDenis, Tom July 13, 2017, 1:58 p.m.
Makes it more obvious which lines of output are the data
and not headers for PKT0 format packets.

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
 src/lib/ring_decode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/src/lib/ring_decode.c b/src/lib/ring_decode.c
index d87d489b1e4a..c00300e4ced8 100644
--- a/src/lib/ring_decode.c
+++ b/src/lib/ring_decode.c
@@ -584,7 +584,7 @@  static void print_decode_pm4(struct umr_asic *asic, struct umr_ring_decoder *dec
 		case 0x80000000:
 			name = umr_reg_name(asic, decoder->pm4.next_write_mem.addr_lo);
-			printf("PKT0 %s(0x%lx) == %lx", name, (unsigned long)decoder->pm4.next_write_mem.addr_lo, (unsigned long)ib);
+			printf("   word (%lu): %s(0x%lx) <= 0x%lx", (unsigned long)decoder->pm4.cur_word++, name, (unsigned long)decoder->pm4.next_write_mem.addr_lo, (unsigned long)ib);
 			// detect VCN/UVD IBs and chain them once all
 			// 4 pieces of information are found