[PATCH i-g-t 4/7] tools/intel_watermark: Eliminate pointless %s in printf()

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

 



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

Signed-off-by: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx>
---
 tools/intel_watermark.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/tools/intel_watermark.c b/tools/intel_watermark.c
index c08379d66e51..4f18e8df1810 100644
--- a/tools/intel_watermark.c
+++ b/tools/intel_watermark.c
@@ -167,10 +167,10 @@ static void skl_wm_dump(void)
 		for (level = 0; level < num_levels; level++) {
 			for (pipe = 0; pipe < num_pipes; pipe++) {
 				if (plane == 0)
-					snprintf(reg_name, sizeof(reg_name), "%s_WM_%c_%1d","CUR",
+					snprintf(reg_name, sizeof(reg_name), "CUR_WM_%c_%1d",
 						 pipe_name(pipe), level);
 				else
-					snprintf(reg_name, sizeof(reg_name), "%s_WM_%1d_%c_%1d","PLANE",
+					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]);
@@ -183,10 +183,10 @@ static void skl_wm_dump(void)
 	for (plane = 0; plane < num_planes; plane++) {
 		for (pipe = 0; pipe < num_pipes; pipe++) {
 			if (plane == 0)
-				snprintf(reg_name, sizeof(reg_name), "%s_WM_TRANS_%c", "CUR",
+				snprintf(reg_name, sizeof(reg_name), "CUR_WM_TRANS_%c",
 					 pipe_name(pipe));
 			else
-				snprintf(reg_name, sizeof(reg_name), "%s_WM_TRANS_%1d_%c", "PLANE",
+				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]);
@@ -198,10 +198,10 @@ static void skl_wm_dump(void)
 	for (plane = 0; plane < num_planes; plane++) {
 		for (pipe = 0; pipe < num_pipes; pipe++) {
 			if (plane == 0)
-				snprintf(reg_name, sizeof(reg_name), "%s_BUF_CFG_%c", "CUR",
+				snprintf(reg_name, sizeof(reg_name), "CUR_BUF_CFG_%c",
 					 pipe_name(pipe));
 			else
-				snprintf(reg_name, sizeof(reg_name), "%s_BUF_CFG_%1d_%c", "PLANE",
+				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]);
-- 
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