add clear log for reboot start / end

- hard to tell if reboot itself is problem or not.

bug: 36004738
Test: reboot and check last kmsg
Change-Id: I0de0e10eac9ac336cc352ddee22a4a1d9e46cb79
This commit is contained in:
Keun-young Park 2017-03-23 15:33:16 -07:00
parent c0ca39c41a
commit 3cd8c6f912
1 changed files with 2 additions and 0 deletions

View File

@ -182,6 +182,7 @@ static void LogShutdownTime(UmountStat stat, Timer* t) {
static void __attribute__((noreturn))
RebootSystem(unsigned int cmd, const std::string& rebootTarget) {
LOG(INFO) << "Reboot ending, jumping to kernel";
switch (cmd) {
case ANDROID_RB_POWEROFF:
reboot(RB_POWER_OFF);
@ -320,6 +321,7 @@ static void __attribute__((noreturn)) DoThermalOff() {
void DoReboot(unsigned int cmd, const std::string& reason, const std::string& rebootTarget,
bool runFsck) {
Timer t;
LOG(INFO) << "Reboot start, reason: " << reason << ", rebootTarget: " << rebootTarget;
std::string timeout = property_get("ro.build.shutdown_timeout");
unsigned int delay = 0;