aboutsummaryrefslogtreecommitdiffstats
path: root/src/sched.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-03-24 15:05:52 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-03-24 15:05:52 -0400
commit9702d522a46500bdfbfd58d4fa28e4eb6ec6f5b7 (patch)
treeeb4ed0308f47a1c08eef36d1d8665065b2826d71 /src/sched.c
parent4f710b04707ab5be86764e4829d8d8a9fb7e2929 (diff)
downloadkutter-9702d522a46500bdfbfd58d4fa28e4eb6ec6f5b7.tar.gz
kutter-9702d522a46500bdfbfd58d4fa28e4eb6ec6f5b7.tar.xz
kutter-9702d522a46500bdfbfd58d4fa28e4eb6ec6f5b7.zip
sched: Report the time of a shutdown
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/sched.c')
-rw-r--r--src/sched.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sched.c b/src/sched.c
index 5f8baae9..8578b2a7 100644
--- a/src/sched.c
+++ b/src/sched.c
@@ -247,6 +247,7 @@ sched_clear_shutdown(void)
static void
run_shutdown(void)
{
+ uint32_t cur = sched_read_time();
shutdown_status = 2;
struct callback_handler *p;
foreachdecl(p, shutdownfuncs) {
@@ -256,7 +257,7 @@ run_shutdown(void)
shutdown_status = 1;
irq_enable();
- sendf("shutdown static_string_id=%hu", shutdown_reason);
+ sendf("shutdown clock=%u static_string_id=%hu", cur, shutdown_reason);
}
// Shutdown the machine if not already in the process of shutting down