summaryrefslogtreecommitdiffstats
path: root/src/fastd.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-02-23 20:00:03 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-02-23 20:00:03 +0100
commit9a0cba318b42ea3c375f6232d7d0b8e74e60ae2b (patch)
tree0579382b5cee4c0bd2b2874444208a8094c5b269 /src/fastd.c
parenteeb1d34f36f622eee48c609ccc95faee4e451ae6 (diff)
downloadfastd-9a0cba318b42ea3c375f6232d7d0b8e74e60ae2b.tar
fastd-9a0cba318b42ea3c375f6232d7d0b8e74e60ae2b.zip
Print port for "any" address in bind log messages
Diffstat (limited to 'src/fastd.c')
-rw-r--r--src/fastd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fastd.c b/src/fastd.c
index 9b3fd82..cf72dfc 100644
--- a/src/fastd.c
+++ b/src/fastd.c
@@ -260,9 +260,9 @@ static int bind_socket(fastd_context_t *ctx, const fastd_bind_address_t *addr, b
if (warn) {
if (addr->bindtodev)
- pr_warn(ctx, "unable to bind to %I on `%s'", &addr->addr, addr->bindtodev);
+ pr_warn(ctx, "unable to bind to %B on `%s'", &addr->addr, addr->bindtodev);
else
- pr_warn(ctx, "unable to bind to %I", &addr->addr);
+ pr_warn(ctx, "unable to bind to %B", &addr->addr);
}
return -1;
@@ -279,9 +279,9 @@ static void bind_sockets(fastd_context_t *ctx) {
if (ctx->socks[i].fd >= 0) {
if (ctx->socks[i].addr->bindtodev)
- pr_info(ctx, "successfully bound to %I on `%s'", &ctx->socks[i].addr->addr, ctx->socks[i].addr->bindtodev);
+ pr_info(ctx, "successfully bound to %B on `%s'", &ctx->socks[i].addr->addr, ctx->socks[i].addr->bindtodev);
else
- pr_info(ctx, "successfully bound to %I", &ctx->socks[i].addr->addr);
+ pr_info(ctx, "successfully bound to %B", &ctx->socks[i].addr->addr);
}
}
}