summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-08-29 11:22:03 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-08-29 11:22:39 +0200
commitb7f191febb639d917b5f4290c73cb1620d9cb2f4 (patch)
treeddcf2abb78f588151c0aad36c6ad38a659a34919 /src
parentf0f07d9c9b3227b5233352418d658aba3584310b (diff)
fix printf format for commit 'osmo_sock_init(): include host and port in error messages'
Related: CID#143566 Change-Id: I75c542089749a0875d3d1913151fe838d7722ff2
Diffstat (limited to 'src')
-rw-r--r--src/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.c b/src/socket.c
index a36aee79..19c513a8 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -73,7 +73,7 @@ int osmo_sock_init(uint16_t family, uint16_t type, uint8_t proto,
if ((flags & (OSMO_SOCK_F_BIND | OSMO_SOCK_F_CONNECT)) ==
(OSMO_SOCK_F_BIND | OSMO_SOCK_F_CONNECT)) {
fprintf(stderr, "invalid: both bind and connect flags set:"
- " %s:%u: %s\n", host, port);
+ " %s:%u\n", host, port);
return -EINVAL;
}