From 2c6a4b5c117fc2a2a5ba730ffc86e75d71140200 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 29 Oct 2012 22:45:08 +0100 Subject: Fix bind error messages --- src/fastd.c | 4 ++-- src/printf.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fastd.c b/src/fastd.c index fc6f016..88e7401 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -263,9 +263,9 @@ static void init_sockets(fastd_context *ctx) { } if (addr->bindtodev) - pr_warn(ctx, "unable to bind to %I on `%s'", addr->addr, addr->bindtodev); + pr_warn(ctx, "unable to bind to %I on `%s'", &addr->addr, addr->bindtodev); else - pr_warn(ctx, "unable to bind to %I", addr->addr); + pr_warn(ctx, "unable to bind to %I", &addr->addr); if (addr == default_v4 || addr == default_v6) exit_error(ctx, "unable to bind to default address"); diff --git a/src/printf.c b/src/printf.c index d2da770..d5f2ff6 100644 --- a/src/printf.c +++ b/src/printf.c @@ -44,7 +44,7 @@ static int snprint_peer_address(const fastd_context *ctx, char *buffer, size_t s switch (address->sa.sa_family) { case AF_UNSPEC: - return snprintf(buffer, size, "floating"); + return snprintf(buffer, size, "any"); case AF_INET: if (inet_ntop(AF_INET, &address->in.sin_addr, addr_buf, sizeof(addr_buf))) -- cgit v1.2.3