radeonsi: print unknown registers with correct formatting
authorMarek Olšák <marek.olsak@amd.com>
Wed, 23 Nov 2016 21:55:20 +0000 (22:55 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 29 Nov 2016 22:52:31 +0000 (23:52 +0100)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_debug.c

index 3de7c71e35f4ce0f6c0ccb16ed89552a206ce595..26763a873e0b259d7a56514afa528d70cae18165 100644 (file)
@@ -233,7 +233,8 @@ static void si_dump_reg(FILE *file, unsigned offset, uint32_t value,
                }
        }
 
-       fprintf(file, COLOR_YELLOW "0x%05x" COLOR_RESET " = 0x%08x", offset, value);
+       print_spaces(file, INDENT_PKT);
+       fprintf(file, COLOR_YELLOW "0x%05x" COLOR_RESET " <- 0x%08x\n", offset, value);
 }
 
 static void si_parse_set_reg_packet(FILE *f, uint32_t *ib, unsigned count,