From patchwork Thu Feb 5 23:32:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 5787581 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8DF5CBF440 for ; Thu, 5 Feb 2015 23:33:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CD13F20270 for ; Thu, 5 Feb 2015 23:33:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ECD3220138 for ; Thu, 5 Feb 2015 23:33:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752669AbbBEXd5 (ORCPT ); Thu, 5 Feb 2015 18:33:57 -0500 Received: from mail-lb0-f180.google.com ([209.85.217.180]:48114 "EHLO mail-lb0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751324AbbBEXdS (ORCPT ); Thu, 5 Feb 2015 18:33:18 -0500 Received: by mail-lb0-f180.google.com with SMTP id b6so12874927lbj.11 for ; Thu, 05 Feb 2015 15:33:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PpSJ5IcBYkzmrmBBlPNp7jNOIZaFn5pLxV1pF0hxVqo=; b=OdcidujZclBQUAijRX4nlqz5LCmIzjICJxOi4jWDD6Ujjiah4XiQcgAjEG/16+CegF kVTplb256J6TcS5BVVijYthlOxl7jmax5kouT+IgKiSXrnypaUpBAWMBkTOf6wYUGhat /H/Qw+ChW+VyV1Pd4Gy1hMsA9fSqk7g8prd/Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PpSJ5IcBYkzmrmBBlPNp7jNOIZaFn5pLxV1pF0hxVqo=; b=LEGklZSpYCVV1sCjrwBdg7Sademqs0yfHv0n+oWuFq0Y2nZ8OdMWT+iNpWkYhRGgiG EflaIPI3bjUI34z8u5r1aOxXWPknc9G+OxOWgrPRFEDKu3jkvjIoBuiNHWZ1JhHBNn6G OEVn3L+Im1KD+x8227bejzFvVqQ7wxjQPTQutNxLwiiNSmPgK7jF2ybz4BC39WCJfn4c /OTIL3FPWXCXJ5Rp5QlNT3jPIhFWSGyf/uOKNcVWuhR/8L1FMjfC62JJShgeR8Wjya+e z34Mwj6cohiu2QxPuhbmYxNe/m/WmhYYGXh0GUaMwo48jrsSP787uLFqmC+mwWmyOPeF dgrw== X-Gm-Message-State: ALoCoQnWVylEVgLJtYDKcN+w/bSMa/odD/vUgNvL4Dw+emgalPYkyfuFyCgeWerHY32aC/PNxYKQ X-Received: by 10.152.3.70 with SMTP id a6mr433030laa.71.1423179196882; Thu, 05 Feb 2015 15:33:16 -0800 (PST) Received: from spencer.imf.au.dk ([130.225.20.51]) by mx.google.com with ESMTPSA id d8sm112398lah.15.2015.02.05.15.33.15 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Feb 2015 15:33:16 -0800 (PST) From: Rasmus Villemoes To: Roland Dreier , Sean Hefty , Hal Rosenstock , Eli Cohen Cc: Rasmus Villemoes , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] infiniband: Fix duplicate KERN_* level Date: Fri, 6 Feb 2015 00:32:59 +0100 Message-Id: <1423179179-16847-2-git-send-email-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.1.3 In-Reply-To: <1423179179-16847-1-git-send-email-linux@rasmusvillemoes.dk> References: <1423179179-16847-1-git-send-email-linux@rasmusvillemoes.dk> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The pr_* macros already supply the relevant KERN_* level; any extra just ends up as garbage in the output. Signed-off-by: Rasmus Villemoes --- drivers/infiniband/hw/mlx4/main.c | 3 +-- drivers/infiniband/hw/mlx5/qp.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index 9117b7a2d5f8..e1f0503e4889 100644 --- a/drivers/infiniband/hw/mlx4/main.c +++ b/drivers/infiniband/hw/mlx4/main.c @@ -1494,8 +1494,7 @@ static void reset_gids_task(struct work_struct *work) MLX4_CMD_TIME_CLASS_B, MLX4_CMD_WRAPPED); if (err) - pr_warn(KERN_WARNING - "set port %d command failed\n", gw->port); + pr_warn("set port %d command failed\n", gw->port); } mlx4_free_cmd_mailbox(dev, mailbox); diff --git a/drivers/infiniband/hw/mlx5/qp.c b/drivers/infiniband/hw/mlx5/qp.c index be0cd358b080..e5b4253828b6 100644 --- a/drivers/infiniband/hw/mlx5/qp.c +++ b/drivers/infiniband/hw/mlx5/qp.c @@ -1394,7 +1394,7 @@ static int mlx5_set_path(struct mlx5_ib_dev *dev, const struct ib_ah_attr *ah, if (ah->ah_flags & IB_AH_GRH) { if (ah->grh.sgid_index >= gen->port[port - 1].gid_table_len) { - pr_err(KERN_ERR "sgid_index (%u) too large. max is %d\n", + pr_err("sgid_index (%u) too large. max is %d\n", ah->grh.sgid_index, gen->port[port - 1].gid_table_len); return -EINVAL; }