[PATCH i-g-t 5/7] tools/intel_watermark: Polish SKL+ register dump output a bit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx>

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

Signed-off-by: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx>
---
 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
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux