From patchwork Mon May 24 19:45:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 101929 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4OJpqqx005597 for ; Mon, 24 May 2010 19:51:53 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756036Ab0EXTvx (ORCPT ); Mon, 24 May 2010 15:51:53 -0400 Received: from qmta08.westchester.pa.mail.comcast.net ([76.96.62.80]:37125 "EHLO qmta08.westchester.pa.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755863Ab0EXTvw (ORCPT ); Mon, 24 May 2010 15:51:52 -0400 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 24 May 2010 19:51:54 +0000 (UTC) X-Greylist: delayed 355 seconds by postgrey-1.27 at vger.kernel.org; Mon, 24 May 2010 15:51:52 EDT Received: from omta09.westchester.pa.mail.comcast.net ([76.96.62.20]) by qmta08.westchester.pa.mail.comcast.net with comcast id MVxA1e0090SCNGk58Xlxgy; Mon, 24 May 2010 19:45:57 +0000 Received: from hal.comcast.net ([75.69.247.31]) by omta09.westchester.pa.mail.comcast.net with comcast id MXlw1e00A0hNrtn3VXlwut; Mon, 24 May 2010 19:45:57 +0000 Received: from hal.comcast.net (localhost.localdomain [127.0.0.1]) by hal.comcast.net (8.14.3/8.14.3) with ESMTP id o4OJjSP1026962; Mon, 24 May 2010 15:45:33 -0400 Received: (from hnrose@localhost) by hal.comcast.net (8.14.3/8.14.3/Submit) id o4OJj8ji026931; Mon, 24 May 2010 15:45:08 -0400 Date: Mon, 24 May 2010 15:45:08 -0400 From: Hal Rosenstock To: sashak@voltaire.com Cc: linux-rdma@vger.kernel.org Subject: [PATCH] infiniband-diags/libibnetdisc/ibnetdisc.c: Fix compile warns on 32 bit archs Message-ID: <20100524194508.GC26919@comcast.net> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org 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; }