summaryrefslogtreecommitdiffstats
path: root/src/printf.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-04-01 23:10:46 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-04-01 23:10:46 +0200
commit9e45032bd53d07e78c2ec41f1ae9d0d75e4910ce (patch)
treed5b373fc0781751327447f59ff90321a5f9b6f42 /src/printf.c
parente0a3556742a81e6cb6e72590b2696ea39e9872ea (diff)
downloadfastd-9e45032bd53d07e78c2ec41f1ae9d0d75e4910ce.tar
fastd-9e45032bd53d07e78c2ec41f1ae9d0d75e4910ce.zip
Add timestamps to log messages
Diffstat (limited to 'src/printf.c')
-rw-r--r--src/printf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/printf.c b/src/printf.c
index 53298bf..7c922c5 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -195,10 +195,10 @@ void fastd_printf(const fastd_context *ctx, const char *format, ...) {
if (p) {
if (inet_ntop(flag_l ? AF_INET6 : AF_INET, p, addr_buf, sizeof(addr_buf)))
- fprintf(stderr, "%s", addr_buf);
+ fputs(addr_buf, stderr);
}
else {
- fprintf(stderr, "(null)");
+ fputs("(null)", stderr);
}
break;
@@ -211,7 +211,7 @@ void fastd_printf(const fastd_context *ctx, const char *format, ...) {
eth_addr->data[3], eth_addr->data[4], eth_addr->data[5]);
}
else {
- fprintf(stderr, "(null)");
+ fputs("(null)", stderr);
}
break;
@@ -221,7 +221,7 @@ void fastd_printf(const fastd_context *ctx, const char *format, ...) {
if (peer)
print_peer_str(ctx, peer);
else
- fprintf(stderr, "(null)");
+ fputs("(null)", stderr);
break;
default: