summaryrefslogtreecommitdiffstats
path: root/src/fastd.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-05-31 05:52:07 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-05-31 05:52:07 +0200
commit6c656c7394bb972e81cd291b0ab126b2e73ce499 (patch)
treeac64bf647bc3b0a6a07a2c36decab13daf8a791f /src/fastd.c
parentae429e372a412cec84c6f67477bd9d429c485ff7 (diff)
downloadfastd-6c656c7394bb972e81cd291b0ab126b2e73ce499.tar
fastd-6c656c7394bb972e81cd291b0ab126b2e73ce499.zip
Make log levels verbose and info more useful
Diffstat (limited to 'src/fastd.c')
-rw-r--r--src/fastd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fastd.c b/src/fastd.c
index 8b5e7de..fc98ef5 100644
--- a/src/fastd.c
+++ b/src/fastd.c
@@ -345,7 +345,7 @@ static void set_user(void) {
if (setuid(conf.uid) < 0)
exit_errno("setuid");
- pr_info("Changed to UID %i, GID %i.", conf.uid, conf.gid);
+ pr_info("changed to UID %i, GID %i", (int)conf.uid, (int)conf.gid);
}
}
@@ -673,6 +673,8 @@ static inline void run(void) {
valgrind as easy as possible.
*/
static inline void cleanup(void) {
+ pr_info("terminating fastd");
+
on_down();
delete_peers();