Harald Welte has submitted this change and it was merged. ( 
https://gerrit.osmocom.org/13267 )

Change subject: pcu_sock: use %zu conversion specifier for printing sizeof() 
result
......................................................................

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
---
M src/common/pcu_sock.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Vadim Yanitskiy: Looks good to me, approved
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c
index d496a49..31097ba 100644
--- a/src/common/pcu_sock.c
+++ b/src/common/pcu_sock.c
@@ -799,7 +799,7 @@

        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;
        }

--
To view, visit https://gerrit.osmocom.org/13267
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: If5cb656537b1b73b9361a132801ab47ab7f8a709
Gerrit-Change-Number: 13267
Gerrit-PatchSet: 5
Gerrit-Owner: dexter <[email protected]>
Gerrit-Reviewer: Daniel Willmann <[email protected]>
Gerrit-Reviewer: Harald Welte <[email protected]>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Max <[email protected]>
Gerrit-Reviewer: Pau Espin Pedrol <[email protected]>
Gerrit-Reviewer: Vadim Yanitskiy <[email protected]>
Gerrit-Reviewer: dexter <[email protected]>

Reply via email to