From: Hal Rosenstock <hnrose-Wuw85uim5zDR7s880joybQ@public.gmane.org>
To: sashak-smomgflXvOZWk0Htik3J/w@public.gmane.org
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [PATCH] infiniband-diags/libibnetdisc/ibnetdisc.c: Fix compile warns on 32 bit archs
Date: Mon, 24 May 2010 15:45:08 -0400 [thread overview]
Message-ID: <20100524194508.GC26919@comcast.net> (raw)
src/ibnetdisc.c: In function `query_port_info':
src/ibnetdisc.c:216: warning: long unsigned int format, different type arg (arg 5)
src/ibnetdisc.c: In function `recv_node_info':
src/ibnetdisc.c:311: warning: long unsigned int format, different type arg (arg 5)
src/ibnetdisc.c:335: warning: long unsigned int format, different type arg (arg 6)
Signed-off-by: Hal Rosenstock <hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
infiniband-diags/libibnetdisc/src/ibnetdisc.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/infiniband-diags/libibnetdisc/src/ibnetdisc.c b/infiniband-diags/libibnetdisc/src/ibnetdisc.c
index 98801de..157b866 100644
--- a/infiniband-diags/libibnetdisc/src/ibnetdisc.c
+++ b/infiniband-diags/libibnetdisc/src/ibnetdisc.c
@@ -211,8 +211,8 @@ static int recv_port_info(smp_engine_t * engine, ibnd_smp_t * smp,
static int query_port_info(smp_engine_t * engine, ib_portid_t * portid,
ibnd_node_t * node, int portnum)
{
- IBND_DEBUG("Query Port Info; %s (%lx):%d\n", portid2str(portid),
- node->guid, portnum);
+ IBND_DEBUG("Query Port Info; %s (0x%" PRIx64 "):%d\n",
+ portid2str(portid), node->guid, portnum);
return issue_smp(engine, portid, IB_ATTR_PORT_INFO, portnum,
recv_port_info, node);
}
@@ -307,8 +307,9 @@ static int recv_node_info(smp_engine_t * engine, ibnd_smp_t * smp,
return -1;
node_is_new = 1;
}
- IBND_DEBUG("Found %s node GUID %lx (%s)\n", node_is_new ? "new" : "old",
- node->guid, portid2str(&smp->path));
+ IBND_DEBUG("Found %s node GUID 0x%" PRIx64 "(%s)\n",
+ node_is_new ? "new" : "old", node->guid,
+ portid2str(&smp->path));
port = node->ports[port_num];
if (!port) {
@@ -331,7 +332,8 @@ static int recv_node_info(smp_engine_t * engine, ibnd_smp_t * smp,
if (!rem_node->ports[rem_port_num]) {
IBND_ERROR("Internal Error; "
- "Node(%p) %lx Port %d no port created!?!?!?\n\n",
+ "Node(%p) 0x%" PRIx64
+ "Port %d no port created!?!?!?\n\n",
rem_node, rem_node->guid, rem_port_num);
return -1;
}
--
1.5.6.4
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2010-05-24 19:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-24 19:45 Hal Rosenstock [this message]
[not found] ` <20100524194508.GC26919-Wuw85uim5zDR7s880joybQ@public.gmane.org>
2010-05-25 18:45 ` [PATCH] infiniband-diags/libibnetdisc/ibnetdisc.c: Fix compile warns on 32 bit archs Sasha Khapyorsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100524194508.GC26919@comcast.net \
--to=hnrose-wuw85uim5zdr7s880joybq@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=sashak-smomgflXvOZWk0Htik3J/w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.