socket: fix debug message for unsupported binding

Fixes: 4ef944b734 ("socket: add support for binding sockets to device")
Reported-by: Bryan Christianson <bryan@whatroute.net>
This commit is contained in:
Miroslav Lichvar 2020-07-10 09:04:20 +02:00
parent 828e6ce30f
commit c099aac79c

View file

@ -346,7 +346,7 @@ bind_device(int sock_fd, const char *iface)
}
return 1;
#else
DEBUG_LOG("Could not bind socket to %s : %s", "Not supported");
DEBUG_LOG("Could not bind socket to %s : %s", iface, "Not supported");
return 0;
#endif
}