msm: subsystem_restart: Explicitly log the restart level.
To allow one to determine what the restart level
was at the time of the invocation of a restart
sequence, explicitly log the level in the kernel
log.
While we're here, mention the name of the subsystem
that has crashed before panic'ing.
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
diff --git a/arch/arm/mach-msm/subsystem_restart.c b/arch/arm/mach-msm/subsystem_restart.c
index 37469f8..78a6203 100644
--- a/arch/arm/mach-msm/subsystem_restart.c
+++ b/arch/arm/mach-msm/subsystem_restart.c
@@ -445,8 +445,8 @@
return -EINVAL;
}
- pr_info("Restart sequence requested for %s\n",
- subsys_name);
+ pr_info("Restart sequence requested for %s, restart_level = %d.\n",
+ subsys_name, restart_level);
/* List of subsystems is protected by a lock. New subsystems can
* still come in.
@@ -497,7 +497,8 @@
break;
case RESET_SOC:
- panic("subsys-restart: Resetting the SoC");
+ panic("subsys-restart: Resetting the SoC - %s crashed.",
+ subsys->name);
break;
default: