diff options
author | Christopher N. Hesse <raymanfx@gmail.com> | 2017-07-08 13:46:35 +0200 |
---|---|---|
committer | Christopher N. Hesse <raymanfx@gmail.com> | 2017-07-09 20:40:38 +0000 |
commit | 775bce8f14a4df8336dc5ee1c189fe6adb4042f6 (patch) | |
tree | 11b7f0ebea1dd8998e86108e83b481457178e6a7 | |
parent | 0da5fbf3e2699b5145360b20980e44f0e6f37302 (diff) | |
download | android_hardware_samsung-775bce8f14a4df8336dc5ee1c189fe6adb4042f6.tar.gz android_hardware_samsung-775bce8f14a4df8336dc5ee1c189fe6adb4042f6.tar.bz2 android_hardware_samsung-775bce8f14a4df8336dc5ee1c189fe6adb4042f6.zip |
power: Print information on boot
Change-Id: I1a8ba54f1b27c2e96c6bae77046dc207cdf35025
-rw-r--r-- | power/power.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/power/power.c b/power/power.c index 9352ae8..10101c0 100644 --- a/power/power.c +++ b/power/power.c @@ -354,6 +354,25 @@ static void samsung_power_init(struct power_module *module) samsung_pwr->touchscreen_power_path = NULL; samsung_pwr->touchkey_power_path = NULL; 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("touchscreen_power_path: %s", + samsung_pwr->touchscreen_power_path ? samsung_pwr->touchscreen_power_path : "NULL"); + ALOGI("touchkey_power_path: %s", + samsung_pwr->touchkey_power_path ? samsung_pwr->touchkey_power_path : "NULL"); } /********************************************************** |