From 73677d0df692574459adc2dcf9ef3bf4a0c0c4c6 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Tue, 18 Jun 2019 18:51:52 +0100 Subject: [PATCH] infiniband: fix printf formatting string on arm arch --- lib/nodes/infiniband.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/nodes/infiniband.cpp b/lib/nodes/infiniband.cpp index a2a49c650..6d68f65af 100644 --- a/lib/nodes/infiniband.cpp +++ b/lib/nodes/infiniband.cpp @@ -20,8 +20,9 @@ * along with this program. If not, see . *********************************************************************************/ -#include -#include +#include +#include +#include #include #include @@ -832,7 +833,7 @@ int ib_read(struct node *n, struct sample *smps[], unsigned cnt, unsigned *relea ret = ibv_post_recv(ib->ctx.id->qp, &wr[0], &bad_wr); if (ret) - error("Was unable to post receive WR in node %s: %i, bad WR ID: 0x%lx", + error("Was unable to post receive WR in node %s: %i, bad WR ID: 0x%" PRIu64, node_name(n), ret, bad_wr->wr_id); debug(LOG_IB | 10, "Succesfully posted receive Work Requests"); @@ -961,7 +962,7 @@ int ib_write(struct node *n, struct sample *smps[], unsigned cnt, unsigned *rele /* The remaining work requests will be bad. Ripple through list * and prepare them to be released */ - debug(LOG_IB | 4, "Bad WR occured with ID: 0x%zx and S/G address: 0x%px: %i", + debug(LOG_IB | 4, "Bad WR occured with ID: 0x%" PRIu64 " and S/G address: 0x%px: %i", bad_wr->wr_id, bad_wr->sg_list, ret); while (1) {