summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff McGee <jeff.mcgee@intel.com>2014-01-21 17:14:33 -0600
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-01-27 23:37:50 +0100
commit5d26a7e2a246265754d51320c35364a3b94cf4e6 (patch)
tree17d62e88f8aba88ea8576cb239c580c2f2237018
parent88864d2ba584cc11f33dafc5c91f1a8e3175d963 (diff)
pm_rps: Make frequency logging more compact
Signed-off-by: Jeff McGee <jeff.mcgee@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--tests/pm_rps.c35
1 files changed, 18 insertions, 17 deletions
diff --git a/tests/pm_rps.c b/tests/pm_rps.c
index 37f70202..7ae0438a 100644
--- a/tests/pm_rps.c
+++ b/tests/pm_rps.c
@@ -128,8 +128,9 @@ static void dumpit(const int *freqs)
{
int i;
+ printf("gt freq (MHz):");
for (i = 0; i < NUMFREQ; i++)
- printf("gt frequency %s (MHz): %d\n", stuff[i].name, freqs[i]);
+ printf(" %s=%d", stuff[i].name, freqs[i]);
printf("\n");
}
@@ -140,67 +141,67 @@ static void min_max_config(void (*check)(void))
{
int fmid = (origfreqs[RPn] + origfreqs[RP0]) / 2;
- log("Check original min and max...\n");
+ log("\nCheck original min and max...\n");
check();
- log("Set min=RPn and max=RP0...\n");
+ log("\nSet min=RPn and max=RP0...\n");
writeval(stuff[MIN].filp, origfreqs[RPn]);
writeval(stuff[MAX].filp, origfreqs[RP0]);
check();
- log("Increase min to midpoint...\n");
+ log("\nIncrease min to midpoint...\n");
writeval(stuff[MIN].filp, fmid);
check();
- log("Increase min to RP0...\n");
+ log("\nIncrease min to RP0...\n");
writeval(stuff[MIN].filp, origfreqs[RP0]);
check();
- log("Increase min above RP0 (invalid)...\n");
+ log("\nIncrease min above RP0 (invalid)...\n");
writeval_inval(stuff[MIN].filp, origfreqs[RP0] + 1000);
check();
- log("Decrease max to RPn (invalid)...\n");
+ log("\nDecrease max to RPn (invalid)...\n");
writeval_inval(stuff[MAX].filp, origfreqs[RPn]);
check();
- log("Decrease min to midpoint...\n");
+ log("\nDecrease min to midpoint...\n");
writeval(stuff[MIN].filp, fmid);
check();
- log("Decrease min to RPn...\n");
+ log("\nDecrease min to RPn...\n");
writeval(stuff[MIN].filp, origfreqs[RPn]);
check();
- log("Decrease min below RPn (invalid)...\n");
+ log("\nDecrease min below RPn (invalid)...\n");
writeval_inval(stuff[MIN].filp, 0);
check();
- log("Decrease max to midpoint...\n");
+ log("\nDecrease max to midpoint...\n");
writeval(stuff[MAX].filp, fmid);
check();
- log("Decrease max to RPn...\n");
+ log("\nDecrease max to RPn...\n");
writeval(stuff[MAX].filp, origfreqs[RPn]);
check();
- log("Decrease max below RPn (invalid)...\n");
+ log("\nDecrease max below RPn (invalid)...\n");
writeval_inval(stuff[MAX].filp, 0);
check();
- log("Increase min to RP0 (invalid)...\n");
+ log("\nIncrease min to RP0 (invalid)...\n");
writeval_inval(stuff[MIN].filp, origfreqs[RP0]);
check();
- log("Increase max to midpoint...\n");
+ log("\nIncrease max to midpoint...\n");
writeval(stuff[MAX].filp, fmid);
check();
- log("Increase max to RP0...\n");
+ log("\nIncrease max to RP0...\n");
writeval(stuff[MAX].filp, origfreqs[RP0]);
check();
- log("Increase max above RP0 (invalid)...\n");
+ log("\nIncrease max above RP0 (invalid)...\n");
writeval_inval(stuff[MAX].filp, origfreqs[RP0] + 1000);
check();
}