summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/fmgr.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2017-03-31 16:08:29 +0000
committerdimitri staessens <dimitri.staessens@ugent.be>2017-03-31 16:08:29 +0000
commitd9d3d3010511a1893e5fffdfbc5378db59233a1e (patch)
treed1f820ba426f097f6ae466dfe6ddb5d003ec8563 /src/ipcpd/normal/fmgr.c
parent7b7f1dc538218d2b3ea198bb66d096a3bcfbcf21 (diff)
parentd57f771135f81003985d9332430332b93902f766 (diff)
downloadouroboros-d9d3d3010511a1893e5fffdfbc5378db59233a1e.tar.gz
ouroboros-d9d3d3010511a1893e5fffdfbc5378db59233a1e.zip
Merged in sandervrijders/ouroboros/be-logs (pull request #446)
ipcpd: normal: Fix logs
Diffstat (limited to 'src/ipcpd/normal/fmgr.c')
-rw-r--r--src/ipcpd/normal/fmgr.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ipcpd/normal/fmgr.c b/src/ipcpd/normal/fmgr.c
index 6d1694ab..2c94160a 100644
--- a/src/ipcpd/normal/fmgr.c
+++ b/src/ipcpd/normal/fmgr.c
@@ -47,6 +47,7 @@
#include <stdbool.h>
#include <pthread.h>
#include <string.h>
+#include <inttypes.h>
#include "flow_alloc.pb-c.h"
typedef FlowAllocMsg flow_alloc_msg_t;
@@ -202,7 +203,7 @@ void * fmgr_nm1_sdu_reader(void * o)
fd = pff_nhop(fmgr.pff[i], pci.dst_addr);
if (fd < 0) {
pff_unlock(fmgr.pff[i]);
- log_err("No next hop for %lu",
+ log_err("No next hop for %" PRIu64,
pci.dst_addr);
ipcp_flow_del(sdb);
continue;
@@ -705,7 +706,8 @@ int fmgr_nm1_write_sdu(struct pci * pci,
fd = pff_nhop(fmgr.pff[pci->qos_id], pci->dst_addr);
if (fd < 0) {
pff_unlock(fmgr.pff[pci->qos_id]);
- log_err("Could not get nhop for address %lu", pci->dst_addr);
+ log_err("Could not get nhop for address %" PRIu64,
+ pci->dst_addr);
ipcp_flow_del(sdb);
return -1;
}
@@ -739,7 +741,8 @@ int fmgr_nm1_write_buf(struct pci * pci,
fd = pff_nhop(fmgr.pff[pci->qos_id], pci->dst_addr);
if (fd < 0) {
pff_unlock(fmgr.pff[pci->qos_id]);
- log_err("Could not get nhop for address %lu", pci->dst_addr);
+ log_err("Could not get nhop for address %" PRIu64,
+ pci->dst_addr);
return -1;
}
pff_unlock(fmgr.pff[pci->qos_id]);