From patchwork Mon Sep 26 11:38:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 9350531 X-Patchwork-Delegate: ira.weiny@intel.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 88C056077B for ; Mon, 26 Sep 2016 11:38:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 716F728C61 for ; Mon, 26 Sep 2016 11:38:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6549A28C78; Mon, 26 Sep 2016 11:38:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CAECB28C75 for ; Mon, 26 Sep 2016 11:38:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934585AbcIZLiv (ORCPT ); Mon, 26 Sep 2016 07:38:51 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:34466 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932843AbcIZLiu (ORCPT ); Mon, 26 Sep 2016 07:38:50 -0400 Received: by mail-wm0-f68.google.com with SMTP id l132so13633575wmf.1 for ; Mon, 26 Sep 2016 04:38:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dev-mellanox-co-il.20150623.gappssmtp.com; s=20150623; h=to:cc:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=/RJtF8FmxZR+rVZA+thePPwfJBupZYv5FBc9w0wBBq4=; b=Ie/298+qBRPt38D1sreDvRuBsn5Pnh+u9wqYdT1gprCxu/BbCM6hYlTklM8ljBt6rS gJA29JaHVIPh2Ve/yaRcQyTaDcSCDCFM2GpWdswASvVy/wc+lkCyei1Q15HyuKQp25WA dpLGZLUK5ZOAvnfNZvSjf3wfW4DPfd4d25s7AO32amuMFlvLazXGQqVP2++8tS/nh6sj ZlR8k5NOLKR0PkeU3xT+M6cPskwbwclRYeerBCbwg+qGH81YaLpNgDdC4RVmTwnvkDR4 VJeNhPFjRHn7hjYKKmmINSSDE1upxmwb1uQRCDkT/8BpA90crJA0t+u6JrTCleiK/U6m +BfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=/RJtF8FmxZR+rVZA+thePPwfJBupZYv5FBc9w0wBBq4=; b=DAeb6mounEy0rUgh2IM1VZyX0+kpaGxzwj+Z1Y9kkWPInNm0I4WV2OHcWDvEichsRf 0yUiL4LVws/zgU4CvGg7WzyBVbxcO62HprxZeTrcU57JLX24ZsRZOjiHG1UCj3xwtJ6z QVjclHIvPF8ovHwQwZBMT2zfj/1p4ZhDgY96wgVXvlQMoIWAzhkTYN1JvH2TYOPjS19s D4oy9Zuty2XV6Qz9wsF5UHlZmc2i5Sdzwbm7VZChQmwUHR6fbNANsX9NC8wU2hbKFDqa RJivez2ydJ+4YKkO5Whh9/U3TFt091BnrSB8WlDIN3YVxSe2uaeAwSf5Ka8qAAnrt3zL ayDw== X-Gm-Message-State: AA6/9Rkgj6R4r4MSLBKmHkM3PInQGuWwu4/mwO+AvxylTa8mLeq0kXRvQ/kkIHjHi3RJuw== X-Received: by 10.194.95.105 with SMTP id dj9mr18336528wjb.20.1474889929252; Mon, 26 Sep 2016 04:38:49 -0700 (PDT) Received: from [192.168.1.183] (c-50-177-105-67.hsd1.ma.comcast.net. [50.177.105.67]) by smtp.googlemail.com with ESMTPSA id l206sm10804330wmf.15.2016.09.26.04.38.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Sep 2016 04:38:48 -0700 (PDT) To: "Weiny, Ira" Cc: "linux-rdma@vger.kernel.org" From: Hal Rosenstock Subject: [PATCH TRIVIAL infiniband-diags] ibaddr.c: Fix LID printfs to be unsigned rather than signed Message-ID: Date: Mon, 26 Sep 2016 07:38:46 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP %u is what's used in other places for unicast LIDs Signed-off-by: Hal Rosenstock --- -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/src/ibaddr.c b/src/ibaddr.c index 5845b4e..1a721d0 100644 --- a/src/ibaddr.c +++ b/src/ibaddr.c @@ -83,7 +83,7 @@ static int ib_resolve_addr(ib_portid_t * portid, int portnum, int show_lid, printf("LID start 0x%x end 0x%x", portid->lid, portid->lid + (1 << lmc) - 1); else if (show_lid < 0) - printf("LID start %d end %d", portid->lid, + printf("LID start %u end %u", portid->lid, portid->lid + (1 << lmc) - 1); printf("\n"); return 0;