summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/fmgr.c
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2017-03-31 17:37:18 +0200
committerSander Vrijders <[email protected]>2017-03-31 17:37:18 +0200
commitd57f771135f81003985d9332430332b93902f766 (patch)
tree68ae084795d380dededd36ac482763588e5a5c79 /src/ipcpd/normal/fmgr.c
parent662c7e7130c6d927ef1eb9999a187163b01e3ccf (diff)
downloadouroboros-d57f771135f81003985d9332430332b93902f766.tar.gz
ouroboros-d57f771135f81003985d9332430332b93902f766.zip
ipcpd: normal: Fix logs
This removes some logs in the graph component and replaces prints of uin64_t variables with an architecture agnostic variant.
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]);