diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2015-04-27 22:34:08 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-04-27 22:34:08 +0200 |
commit | 3dd45b9d3467ee62ac0d604a5607baaa10089ac3 (patch) | |
tree | 7bf56e57c71bcfedc47a7af9be4bab290beb21da /src/modules/dataman | |
parent | 7b06d781d8ade137a1837a3ecf002579bddfbb14 (diff) | |
parent | bd1c3363df44170523c68fd87ee19f2582a5e8fc (diff) | |
download | px4-firmware-beta.tar.gz px4-firmware-beta.tar.bz2 px4-firmware-beta.zip |
Merge branch 'master' into betabeta
Diffstat (limited to 'src/modules/dataman')
-rw-r--r-- | src/modules/dataman/dataman.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/modules/dataman/dataman.c b/src/modules/dataman/dataman.c index 68bf12024..b442b7430 100644 --- a/src/modules/dataman/dataman.c +++ b/src/modules/dataman/dataman.c @@ -685,20 +685,21 @@ task_main(int argc, char *argv[]) fsync(g_task_fd); + printf("dataman: "); /* see if we need to erase any items based on restart type */ int sys_restart_val; if (param_get(param_find("SYS_RESTART_TYPE"), &sys_restart_val) == OK) { if (sys_restart_val == DM_INIT_REASON_POWER_ON) { - warnx("Power on restart"); + printf("Power on restart"); _restart(DM_INIT_REASON_POWER_ON); } else if (sys_restart_val == DM_INIT_REASON_IN_FLIGHT) { - warnx("In flight restart"); + printf("In flight restart"); _restart(DM_INIT_REASON_IN_FLIGHT); } else { - warnx("Unknown restart"); + printf("Unknown restart"); } } else { - warnx("Unknown restart"); + printf("Unknown restart"); } /* We use two file descriptors, one for the caller context and one for the worker thread */ @@ -706,7 +707,7 @@ task_main(int argc, char *argv[]) /* worker thread is shutting down but still processing requests */ g_fd = g_task_fd; - warnx("Initialized, data manager file '%s' size is %d bytes", k_data_manager_device_path, max_offset); + printf(", data manager file '%s' size is %d bytes\n", k_data_manager_device_path, max_offset); /* Tell startup that the worker thread has completed its initialization */ sem_post(&g_init_sema); |