dexter has uploaded this change for review. ( https://gerrit.osmocom.org/13267


Change subject: pcu_sock: cast to long unsigned int before printing
......................................................................

pcu_sock: cast to long unsigned int before printing

When using %lu and sizeof() for printing the compiler may throw a
warning. Lets prevent this by casting to long unsigned int.

Change-Id: If5cb656537b1b73b9361a132801ab47ab7f8a709
---
M src/common/pcu_sock.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/67/13267/1

diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c
index 60e0f7a..64ec714 100644
--- a/src/common/pcu_sock.c
+++ b/src/common/pcu_sock.c
@@ -777,7 +777,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 %lu, discarding\n", rc, (long unsigned int) 
sizeof(*pcu_prim));
                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: newchange
Gerrit-Change-Id: If5cb656537b1b73b9361a132801ab47ab7f8a709
Gerrit-Change-Number: 13267
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <[email protected]>

Reply via email to