summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/ribmgr.c
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-12-03 14:50:45 +0100
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-12-03 14:50:45 +0100
commit0334843d9f0a73f613e1dd20e30e6f3333d12d62 (patch)
tree612b48f6f713c9447c15d6e43c8fe85175823c1d /src/ipcpd/normal/ribmgr.c
parentef2e50b94fbc7ce1c7dbe1f2ea860e6ab0724726 (diff)
downloadouroboros-0334843d9f0a73f613e1dd20e30e6f3333d12d62.tar.gz
ouroboros-0334843d9f0a73f613e1dd20e30e6f3333d12d62.zip
ipcpd, tools: Fix compilation on 32 bit linux
Fixes issues with uint64_t not corresponding with unsigned long in printf statements. Reorganises a calculation to reduce overflows.
Diffstat (limited to 'src/ipcpd/normal/ribmgr.c')
-rw-r--r--src/ipcpd/normal/ribmgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipcpd/normal/ribmgr.c b/src/ipcpd/normal/ribmgr.c
index 127eb9f2..02cbbbfd 100644
--- a/src/ipcpd/normal/ribmgr.c
+++ b/src/ipcpd/normal/ribmgr.c
@@ -1365,7 +1365,7 @@ int ribmgr_start_policies(void)
}
rib.address = rib.addr_auth->address();
- LOG_DBG("IPCP has address %lu", rib.address);
+ LOG_DBG("IPCP has address %lu", (unsigned long) rib.address);
return 0;
}