[PATCH 6/6] fix fprintf format specifiers in osmo-bsc_mgcp

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Alexander Huemer alexander.huemer at xx.vu
Sun Sep 4 22:32:38 UTC 2011


---
 openbsc/src/osmo-bsc_mgcp/mgcp_main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/openbsc/src/osmo-bsc_mgcp/mgcp_main.c b/openbsc/src/osmo-bsc_mgcp/mgcp_main.c
index 4a2767f..2a2ebc7 100644
--- a/openbsc/src/osmo-bsc_mgcp/mgcp_main.c
+++ b/openbsc/src/osmo-bsc_mgcp/mgcp_main.c
@@ -156,8 +156,8 @@ static int read_call_agent(struct osmo_fd *fd, unsigned int what)
 		perror("Gateway failed to read");
 		return -1;
 	} else if (slen > sizeof(addr)) {
-		fprintf(stderr, "Gateway received message from outerspace: %lu %d\n",
-			slen, sizeof(addr));
+		fprintf(stderr, "Gateway received message from outerspace: %lu %lu\n",
+			(unsigned long int)slen, sizeof(addr));
 		return -1;
 	}
 
-- 
1.7.6.1





More information about the OpenBSC mailing list