From patchwork Sun Aug 1 17:19:38 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Khapyorsky X-Patchwork-Id: 116338 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o71HIS8f016772 for ; Sun, 1 Aug 2010 17:18:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751615Ab0HARSZ (ORCPT ); Sun, 1 Aug 2010 13:18:25 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:60768 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751589Ab0HARSY (ORCPT ); Sun, 1 Aug 2010 13:18:24 -0400 Received: by fxm14 with SMTP id 14so1456163fxm.19 for ; Sun, 01 Aug 2010 10:18:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:date:from:to :cc:subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=SxIJ1hyfUNAoWvXP8nBfgIXFNHAs5SYs1I4Rg5VnpgI=; b=l69vtij7HmF3dokXJWNC9DbtMQ8ggLQGGEq9fE4kBWFvhbCpKmpZz1wjatrdXnO3xr DKfMRTYHnUIEYTygyqBMZf2VRgjt+A2TXOeXOMY4YIXVxieif7rXoCVORbmfK0mtbLYK NW24J+0cQezqjnfqEeUNuo/f7C7qPR08FRhKk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=L+yPq3YofrnKL67wmf1H6YWj7wPAd1D8vTTmNt7sEXVgXzQfBm+wFgqhD5pNXOB9x0 koWomXhHJqwKsW/LFH8NtQaLnBc2nh2lgX3xZjE1Aw8Rthc9lSSINrebdeN00HXQBUjf E3nvD4uWD2hSG5saU8SQEI77hrC5Tgr2cr5F8= Received: by 10.223.121.133 with SMTP id h5mr4665543far.74.1280683103565; Sun, 01 Aug 2010 10:18:23 -0700 (PDT) Received: from me.localdomain (87.69.36.170.cable.012.net.il [87.69.36.170]) by mx.google.com with ESMTPS id 10sm1672905fax.42.2010.08.01.10.18.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 01 Aug 2010 10:18:22 -0700 (PDT) Received: by me.localdomain (Postfix, from userid 1000) id AB0A911EA5; Sun, 1 Aug 2010 20:19:38 +0300 (IDT) Date: Sun, 1 Aug 2010 20:19:38 +0300 From: Sasha Khapyorsky To: Irena Kruchkovsky Cc: Linux RDMA list , "ofw@lists.openfabrics.org" Subject: Re: [ofw] [Patch] [Tools][infiniband-diags] Message-ID: <20100801171938.GB26625@me> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sun, 01 Aug 2010 17:18:29 +0000 (UTC) diff --git a/infiniband-diags/src/ibstat.c b/infiniband-diags/src/ibstat.c index c44d8c4..525902d 100644 --- a/infiniband-diags/src/ibstat.c +++ b/infiniband-diags/src/ibstat.c @@ -72,10 +72,9 @@ static void ca_dump(umad_ca_t * ca) printf("\tNumber of ports: %d\n", ca->numports); printf("\tFirmware version: %s\n", ca->fw_ver); printf("\tHardware version: %s\n", ca->hw_ver); - printf("\tNode GUID: 0x%016llx\n", - (long long unsigned)ntohll(ca->node_guid)); - printf("\tSystem image GUID: 0x%016llx\n", - (long long unsigned)ntohll(ca->system_guid)); + printf("\tNode GUID: 0x%016" PRIx64 "\n", ntohll(ca->node_guid)); + printf("\tSystem image GUID: 0x%016" PRIx64 "\n", + ntohll(ca->system_guid)); } static char *port_state_str[] = { @@ -122,8 +121,7 @@ static int port_dump(umad_port_t * port, int alone) printf("%sLMC: %d\n", pre, port->lmc); printf("%sSM lid: %d\n", pre, port->sm_lid); printf("%sCapability mask: 0x%08x\n", pre, ntohl(port->capmask)); - printf("%sPort GUID: 0x%016llx\n", pre, - (long long unsigned)ntohll(port->port_guid)); + printf("%sPort GUID: 0x%016" PRIx64 "\n", pre, ntohll(port->port_guid)); printf("%sLink layer: %s\n", pre, port->link_layer); return 0; }