aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2019-03-15 13:54:57 +0100
committerPhilipp Maier <pmaier@sysmocom.de>2019-04-16 10:07:34 +0200
commitac3924e093259aec750a828c6bcbf3e76c1a03ca (patch)
tree7337adb1e92fc12db8f1ae257f72101779beedf5
parent73d174e35ff033e4803433a771e73c4bab26d5c9 (diff)
pcu_sock: use %zu conversion specifier for printing sizeof() result
When using %lu and sizeof() for printing the compiler may throw a warning. Lets prevent this by using %zu instead of %lu as conversion specifier. Change-Id: If5cb656537b1b73b9361a132801ab47ab7f8a709
-rw-r--r--src/common/pcu_sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c
index d496a492..31097baa 100644
--- a/src/common/pcu_sock.c
+++ b/src/common/pcu_sock.c
@@ -799,7 +799,7 @@ static int pcu_sock_read(struct osmo_fd *bfd)
if (rc < sizeof(*pcu_prim)) {
LOGP(DPCU, LOGL_ERROR, "Received %d bytes on PCU Socket, but primitive size "
- "is %lu, discarding\n", rc, sizeof(*pcu_prim));
+ "is %zu, discarding\n", rc, sizeof(*pcu_prim));
msgb_free(msg);
return 0;
}