Fix event type reporting when calling 'procd_shutdown'.
authorYousong Zhou <yszhou4tech@gmail.com>
Tue, 23 Jul 2013 08:28:40 +0000 (16:28 +0800)
committerJohn Crispin <blogic@openwrt.org>
Tue, 23 Jul 2013 10:24:31 +0000 (12:24 +0200)
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
state.c

diff --git a/state.c b/state.c
index 9cde905..90e883c 100644 (file)
--- a/state.c
+++ b/state.c
@@ -88,7 +88,7 @@ void procd_state_next(void)
 
 void procd_shutdown(int event)
 {
 
 void procd_shutdown(int event)
 {
-       DEBUG(1, "Shutting down system with event %x\n", reboot_event);
+       DEBUG(1, "Shutting down system with event %x\n", event);
        reboot_event = event;
        state = STATE_SHUTDOWN;
        state_enter();
        reboot_event = event;
        state = STATE_SHUTDOWN;
        state_enter();