diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-11-22 15:49:34 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-11-22 16:34:47 +0100 |
commit | 138c25ec74f08db6f6759053d0200058a794c196 (patch) | |
tree | 44ad8dbc58a52572a1e52f939334ba29037e7c0e /src/modules/dataman | |
parent | ace6c3fe409f4b70e75bb762e0ba6e0a574a7277 (diff) | |
download | px4-firmware-138c25ec74f08db6f6759053d0200058a794c196.tar.gz px4-firmware-138c25ec74f08db6f6759053d0200058a794c196.tar.bz2 px4-firmware-138c25ec74f08db6f6759053d0200058a794c196.zip |
dataman: less verbose, fix code style
Diffstat (limited to 'src/modules/dataman')
-rw-r--r-- | src/modules/dataman/dataman.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/modules/dataman/dataman.c b/src/modules/dataman/dataman.c index b2355d4d8..705e54be3 100644 --- a/src/modules/dataman/dataman.c +++ b/src/modules/dataman/dataman.c @@ -629,9 +629,6 @@ task_main(int argc, char *argv[]) { work_q_item_t *work; - /* inform about start */ - warnx("Initializing.."); - /* Initialize global variables */ g_key_offsets[0] = 0; @@ -694,16 +691,15 @@ task_main(int argc, char *argv[]) if (sys_restart_val == DM_INIT_REASON_POWER_ON) { warnx("Power on restart"); _restart(DM_INIT_REASON_POWER_ON); - } - else if (sys_restart_val == DM_INIT_REASON_IN_FLIGHT) { + } else if (sys_restart_val == DM_INIT_REASON_IN_FLIGHT) { warnx("In flight restart"); _restart(DM_INIT_REASON_IN_FLIGHT); - } - else + } else { warnx("Unknown restart"); - } - else + } + } else { warnx("Unknown restart"); + } /* We use two file descriptors, one for the caller context and one for the worker thread */ /* They are actually the same but we need to some way to reject caller request while the */ |