summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2017-11-21 20:32:42 +0200
committerVille Syrjälä <ville.syrjala@linux.intel.com>2017-11-29 15:45:02 +0200
commit0c4eb79c41c3b726e9896d6991c4521cd64c39eb (patch)
tree24fc42b6b9292ad973a3abf568d056474f8d396b /tools
parent4aebd4af430a62452a6a34542c053f3c594b9408 (diff)
tools/intel_watermark: Clean up formatting
Align the comlums properly, and replace some of the whitespace in the printf()s with properly sized fields. Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com> 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.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/tools/intel_watermark.c b/tools/intel_watermark.c
index a18b5c8e..3c70f4ec 100644
--- a/tools/intel_watermark.c
+++ b/tools/intel_watermark.c
@@ -312,54 +312,54 @@ static void skl_wm_dump(void)
printf("\n");
for (level = 0; level < num_levels; level++) {
- printf("%5d ", level);
+ printf("%5d", level);
for (plane = 0; plane < num_planes; plane++) {
blocks = REG_DECODE1(wm[level][pipe][plane], 0, 9);
lines = REG_DECODE1(wm[level][pipe][plane], 14, 5);
enable = REG_DECODE1(wm[level][pipe][plane], 31, 1);
- printf("%3d%c", blocks, endis_ast(enable));
+ printf("%5d%c", blocks, endis_ast(enable));
if (!REG_DECODE1(wm[level][pipe][plane], 30, 1))
- printf("(%2d) ", lines);
+ printf("(%2d)", lines);
else
- printf("(--) ");
+ printf("(--)");
}
printf("\n");
}
- printf("TRANS: ");
+ printf("TRANS");
for (plane = 0; plane < num_planes; plane++) {
blocks = REG_DECODE1(wm_trans[pipe][plane], 0, 9);
lines = REG_DECODE1(wm_trans[pipe][plane], 14, 5);
enable = REG_DECODE1(wm_trans[pipe][plane], 31, 1);
- printf("%3d%c", blocks, endis_ast(enable));
+ printf("%5d%c", blocks, endis_ast(enable));
if (!REG_DECODE1(wm_trans[pipe][plane], 30, 1))
- printf("(%2d) ", lines);
+ printf("(%2d)", lines);
else
- printf("(--) ");
+ printf("(--)");
}
printf("\nDDB allocation:");
- printf("\nstart ");
+ printf("\nstart");
for (plane = 0; plane < num_planes; plane++) {
start = REG_DECODE1(buf_cfg[pipe][plane], 0, 10);
- printf("%7d ", start);
+ printf("%10d", start);
}
- printf("\nend ");
+ printf("\n end");
for (plane = 0; plane < num_planes; plane++) {
end = REG_DECODE1(buf_cfg[pipe][plane], 16, 10);
- printf("%7d ", end);
+ printf("%10d", end);
}
- printf("\nsize ");
+ printf("\n size");
for (plane = 0; plane < num_planes; plane++) {
start = REG_DECODE1(buf_cfg[pipe][plane], 0, 10);
end = REG_DECODE1(buf_cfg[pipe][plane], 16, 10);
size = end - start + 1;
- printf("%7d ", (end == 0 && size == 1) ? 0 : size);
+ printf("%10d", (end == 0 && size == 1) ? 0 : size);
}
printf("\n\n\n");