On 12 Oct 2015, at 02:54, Neels Hofmeyr
<nhofmeyr(a)sysmocom.de> wrote:
diff --git a/gtp/gtp.c b/gtp/gtp.c
index cfce244..90e0326 100644
--- a/gtp/gtp.c
+++ b/gtp/gtp.c
@@ -741,7 +741,7 @@ int gtp_new(struct gsn_t **gsn, char *statedir, struct in_addr
*listen,
(*gsn)->err_socket++;
LOGP(DLGTP, LOGL_ERROR,
"bind(fd0=%d, addr=%lx, len=%d) failed: Error = %s\n",
- (*gsn)->fd0, (unsigned long)&addr, sizeof(addr),
+ (*gsn)->fd0, *((unsigned long*)&addr), sizeof(addr),
did you run into this? At first I wanted to say then use osmo_hexdump but
as this is an in_addr.. a user wants to see the IP addr and the port number
that could not be bound to. Could you improve this?
holger