Revert "power: Temporary logging fix"
This reverts commit ff86846e97f2d159cc98af80938246db0d53c39a.
Change-Id: I46aa4d6606c3c519322b2e2cd048bd312a15fa4d
diff --git a/power/power.c b/power/power.c
index 7b61748..2ec1d80 100644
--- a/power/power.c
+++ b/power/power.c
@@ -371,10 +371,19 @@
init_touch_input_power_path(samsung_pwr);
ALOGI("Initialized settings:");
- ALOGI("max_freqs: cluster[0]: %s, cluster[1]: %s", samsung_pwr->cpu0_max_freq,
- samsung_pwr->cpu4_max_freq);
- ALOGI("hispeed_freqs: cluster[0]: %s, cluster[1]: %s", samsung_pwr->cpu0_hispeed_freq,
- samsung_pwr->cpu4_hispeed_freq);
+ char max_freqs[PATH_MAX];
+ sprintf(max_freqs, "max_freqs: cluster[0]: %s", samsung_pwr->max_freqs[0]);
+ for (unsigned int i = 1; i < CLUSTER_COUNT; i++) {
+ sprintf(max_freqs, "%s, %s[%d]: %s", max_freqs, "cluster", i, samsung_pwr->max_freqs[i]);
+ }
+ ALOGI("%s", max_freqs);
+ char hispeed_freqs[PATH_MAX];
+ sprintf(hispeed_freqs, "hispeed_freqs: cluster[0]: %s", samsung_pwr->hispeed_freqs[0]);
+ for (unsigned int i = 1; i < CLUSTER_COUNT; i++) {
+ sprintf(hispeed_freqs, "%s, %s[%d]: %s", hispeed_freqs, "cluster", i,
+ samsung_pwr->hispeed_freqs[i]);
+ }
+ ALOGI("%s", hispeed_freqs);
ALOGI("boostpulse_fd: %d", samsung_pwr->boostpulse_fd);
ALOGI("touchscreen_power_path: %s",
samsung_pwr->touchscreen_power_path ? samsung_pwr->touchscreen_power_path : "NULL");