Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 860438cb authored by Keun-young Park's avatar Keun-young Park Committed by android-build-merger
Browse files

Merge "add clear log for reboot start / end" am: 6e6eb48e

am: c13d8924

Change-Id: Ib66a851513436d4ea9ebe613e793c7f903109a91
parents a265a40e c13d8924
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;