From: Ville Syrjälä <[email protected]>

Print hex numbers with "0x" prefix, and make the output a bit more
compact.

Signed-off-by: Ville Syrjälä <[email protected]>
---
 tools/intel_watermark.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/intel_watermark.c b/tools/intel_watermark.c
index 4f18e8df1810..24ecaa780be5 100644
--- a/tools/intel_watermark.c
+++ b/tools/intel_watermark.c
@@ -173,7 +173,7 @@ static void skl_wm_dump(void)
                                        snprintf(reg_name, sizeof(reg_name), 
"PLANE_WM_%1d_%c_%1d",
                                                 plane, pipe_name(pipe), level);
 
-                               printf("%-19s %8x\t\t" , reg_name, 
wm[level][pipe][plane]);
+                               printf("%-18s 0x%08x\t" , reg_name, 
wm[level][pipe][plane]);
                        }
                        printf("\n");
                }
@@ -189,7 +189,7 @@ static void skl_wm_dump(void)
                                snprintf(reg_name, sizeof(reg_name), 
"PLANE_WM_TRANS_%1d_%c",
                                         plane, pipe_name(pipe));
 
-                       printf("%-19s %8x\t\t", reg_name, 
wm_trans[pipe][plane]);
+                       printf("%-18s 0x%08x\t", reg_name, 
wm_trans[pipe][plane]);
                }
                printf("\n");
        }
@@ -204,7 +204,7 @@ static void skl_wm_dump(void)
                                snprintf(reg_name, sizeof(reg_name), 
"PLANE_BUF_CFG_%1d_%c",
                                         plane, pipe_name(pipe));
 
-                       printf("%-19s %8x\t\t", reg_name, buf_cfg[pipe][plane]);
+                       printf("%-18s 0x%08x\t", reg_name, 
buf_cfg[pipe][plane]);
                }
                printf("\n");
        }
-- 
2.13.5

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to