From patchwork Thu Apr 27 16:56:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 9703233 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 C1968601D3 for ; Thu, 27 Apr 2017 16:57:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CED1828635 for ; Thu, 27 Apr 2017 16:57:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C1E342863C; Thu, 27 Apr 2017 16:57:04 +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 5766628635 for ; Thu, 27 Apr 2017 16:57:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966970AbdD0Q47 (ORCPT ); Thu, 27 Apr 2017 12:56:59 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:33109 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030769AbdD0Q4v (ORCPT ); Thu, 27 Apr 2017 12:56:51 -0400 Received: by mail-wm0-f68.google.com with SMTP id y10so5886075wmh.0 for ; Thu, 27 Apr 2017 09:56: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=6CukWBis8rfZHKZVV+ARX6c/8KfTs8VpgzmSPTl6YhU=; b=Alzu1pFEVWQuWelIYLFAc0WcFsxYKY5UXwvSEn2XY6/Zls3YTikUo78sdVSeJW0xi2 /xTE0GgUwVJ690MdztYMKq1KO2poGIJtmWMSF48rfbNKnrVPp7uCctQq+PCbhAjZGKCQ IqGfTLamj8kUTCbG9Fx49ApbE941dFzVPSFCuypyB7HCmV409cXGeE3TGVni2sQ3txSz mxQNXQmU6Q9vvRbu2HkP5hojNaFgfpoCEjznu0dfSJSJq32tqCX/NvKaUguL5blbPw6W HhkV793ZlP7grAHnZYsj2DuhfOdLoY2cO+1FsspuRBFjYvSX5Tr7ejaxKfMJ62t7H3Bl 3XYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=6CukWBis8rfZHKZVV+ARX6c/8KfTs8VpgzmSPTl6YhU=; b=CypSR5XEzUH2k0UY1FzEX7kZukIJupbLyDwrVAoXLX7gSLEwoZFbEzfti6+xYrZrja 96Fr3lsDCglpuVMQ3kIbdqOZ0ARruFj6dGKgwOEi2eZflkmpr6PGJuxPHWLLNOqKt32T chIfv7cu9MHfreZ419QH5IQhgr0NIqx/VCPRRDQLfxEUTR6p0oW+ZtlVBXxCE5nytUIM +lKrsWGFTSJ287+xHliT0YT7SM6oe+gOAtSAAlk8qoSrhjE+wFCoPz45sIvHxUNlfgJ7 f7Kzpi1n/h0GaUfZ4YngaNQc38i3q95MQRRstqD79MDNBOF2QNs85tn/ga/U+Q93eoeB VB/A== X-Gm-Message-State: AN3rC/4Hp9HHNulvrBujbaOAD5YuBeexaHzC6mzWUiMR44qwcAZQKpS4 IGN7lnFCxPaz1A== X-Received: by 10.28.151.213 with SMTP id z204mr3154057wmd.48.1493312209695; Thu, 27 Apr 2017 09:56:49 -0700 (PDT) Received: from [192.168.1.183] (c-98-229-113-133.hsd1.ma.comcast.net. [98.229.113.133]) by smtp.googlemail.com with ESMTPSA id x20sm9763928wme.0.2017.04.27.09.56.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Apr 2017 09:56:48 -0700 (PDT) To: "Weiny, Ira" Cc: "linux-rdma@vger.kernel.org" From: Hal Rosenstock Subject: [PATCH TRIVIAL infiniband-diags] ibdiag_common.c: Fix cosmetic formatting issue Message-ID: <5c06ade8-c86d-b59c-0ee5-c8309af69676@dev.mellanox.co.il> Date: Thu, 27 Apr 2017 12:56:47 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.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 Change leading spaces into a tab Signed-off-by: Hal Rosenstock --- src/ibdiag_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ibdiag_common.c b/src/ibdiag_common.c index cbade5b..1f91269 100644 --- a/src/ibdiag_common.c +++ b/src/ibdiag_common.c @@ -850,7 +850,7 @@ int vsnprint_field(char *buf, size_t n, enum MAD_FIELDS f, int spacing, int len, i, ret; len = strlen(mad_field_name(f)); - if (len + 2 > n || spacing + 1 > n) + if (len + 2 > n || spacing + 1 > n) return 0; strncpy(buf, mad_field_name(f), n);