From a297c9348b258435fef08e98d6a89cbed1d2386d Mon Sep 17 00:00:00 2001 From: Ville Syrjälä Date: Fri, 15 Sep 2017 20:40:17 +0300 Subject: tools/intel_watermark: Polish SKL+ register dump output a bit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Print hex numbers with "0x" prefix, and make the output a bit more compact. Reviewed-by: Dhinakaran Pandiyan Signed-off-by: Ville Syrjälä --- tools/intel_watermark.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/intel_watermark.c') diff --git a/tools/intel_watermark.c b/tools/intel_watermark.c index e5c2ef38..43f846f8 100644 --- a/tools/intel_watermark.c +++ b/tools/intel_watermark.c @@ -172,7 +172,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"); } @@ -188,7 +188,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"); } @@ -203,7 +203,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"); } -- cgit v1.2.3