[Intel-gfx] [PATCH i-g-t 5/7] tools/intel_watermark: Polish SKL+ register dump output a bit
Ville Syrjala
ville.syrjala at linux.intel.com
Fri Sep 15 17:57:42 UTC 2017
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
Print hex numbers with "0x" prefix, and make the output a bit more
compact.
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
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
More information about the Intel-gfx
mailing list