summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher N. Hesse <raymanfx@gmail.com>2017-07-09 23:07:09 +0200
committerChristopher N. Hesse <raymanfx@gmail.com>2017-07-09 23:08:10 +0200
commitff86846e97f2d159cc98af80938246db0d53c39a (patch)
tree7af1b81e3e1bd98a439aaa378781c6db5915c85e
parent775bce8f14a4df8336dc5ee1c189fe6adb4042f6 (diff)
downloadandroid_hardware_samsung-ff86846e97f2d159cc98af80938246db0d53c39a.tar.gz
android_hardware_samsung-ff86846e97f2d159cc98af80938246db0d53c39a.tar.bz2
android_hardware_samsung-ff86846e97f2d159cc98af80938246db0d53c39a.zip
power: Temporary logging fix
This will be reverted once the more advanced mechanism (https://review.lineageos.org/#/c/179092/) goes in. The boost fd logging will be restored once https://review.lineageos.org/#/c/180313/ makes it into the code base. Change-Id: Ifc1b4a2ba3e1c4283d74eafec45c5fbf07153f03
-rw-r--r--power/power.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/power/power.c b/power/power.c
index 10101c0..99fd443 100644
--- a/power/power.c
+++ b/power/power.c
@@ -356,19 +356,11 @@ static void samsung_power_init(struct power_module *module)
init_touch_input_power_path(samsung_pwr);
ALOGI("Initialized settings:");
- 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: %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("boost_fd: %d, boostpulse_fd: %d", samsung_pwr->boost_fd, samsung_pwr->boostpulse_fd);
+ 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);
+ ALOGI("boostpulse_fd: %d", samsung_pwr->boostpulse_fd);
ALOGI("touchscreen_power_path: %s",
samsung_pwr->touchscreen_power_path ? samsung_pwr->touchscreen_power_path : "NULL");
ALOGI("touchkey_power_path: %s",