summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2017-09-15 20:39:00 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2017-11-21 16:19:17 +0200
commit9a2ba28a87b0fc20ea80a614069615262d311a17 (patch)
treed0cf3400a35cf31e20ee180d90c60926bf0fd038 /tools
parent6d9f484aa4886ebbb7ac384abe4c4727fab93056 (diff)
tools/intel_watermark: Eliminate pointless %s in printf()
Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/intel_watermark.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/intel_watermark.c b/tools/intel_watermark.c
index 8f20add6..e5c2ef38 100644
--- a/tools/intel_watermark.c
+++ b/tools/intel_watermark.c
@@ -166,10 +166,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]);
@@ -182,10 +182,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]);
@@ -197,10 +197,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]);