From patchwork Tue Jan 14 15:45:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eli Cohen X-Patchwork-Id: 3486341 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 29F109F381 for ; Tue, 14 Jan 2014 15:45:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 225B420218 for ; Tue, 14 Jan 2014 15:45:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 173EF2021B for ; Tue, 14 Jan 2014 15:45:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751674AbaANPpt (ORCPT ); Tue, 14 Jan 2014 10:45:49 -0500 Received: from mail-ea0-f182.google.com ([209.85.215.182]:53134 "EHLO mail-ea0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751631AbaANPps (ORCPT ); Tue, 14 Jan 2014 10:45:48 -0500 Received: by mail-ea0-f182.google.com with SMTP id a15so4065815eae.27 for ; Tue, 14 Jan 2014 07:45:47 -0800 (PST) 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=m1Ad3v5ExnCZeztsEuTqyijvZNITtoRIU1kZYPD5ihY=; b=SsCHMQuYm8ZnTuojsY5oceTKjzWlkMpiwBXfdgeK5qxHHIgxhjfLb8bcF4hg7l0xVI t7nNXnlUJIk1V61EeeWwGpWc2WvcSz0oQYKEDMh1f+4HfFjVQFvqDPz6pQTpWhKSCM8C CUCtA9ezBBR592njPF23TGk1GOLt2zhNmGmRsHrhyTBAAJ5EDWPjar1U26fBW+h8qF9g lUtVQW/JikoKB7gwcVHUTziygJLBw7XXGa09QGFPqNzhn380Kao5+50ymx+e4wQ5bU5A BlFoWHMQhXBNGK+QXdT4x/LfirLwqh3riQaKzRX4dsg05wjCc83C11CTm0kybBu5IwN7 ZFTg== X-Gm-Message-State: ALoCoQkcg3ZkE1Z4fNO2NOXsOy+pgcl1pR2Nxmv2/Pqv83MbklMHdZuntWOi3kUXwnsXlBuCotGu X-Received: by 10.14.98.129 with SMTP id v1mr2992788eef.5.1389714347492; Tue, 14 Jan 2014 07:45:47 -0800 (PST) Received: from localhost (out.voltaire.com. [193.47.165.251]) by mx.google.com with ESMTPSA id w4sm2607689eef.20.2014.01.14.07.45.46 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 14 Jan 2014 07:45:47 -0800 (PST) From: Eli Cohen To: roland@kernel.org Cc: linux-rdma@vger.kernel.org, davem@davemloft.net, ogerlitz@mellanox.com, Eli Cohen Subject: [PATCH for-next 06/14] net/mlx5_core: Use mlx5 core style warning Date: Tue, 14 Jan 2014 17:45:15 +0200 Message-Id: <1389714323-20130-7-git-send-email-eli@mellanox.com> X-Mailer: git-send-email 1.8.5.2 In-Reply-To: <1389714323-20130-1-git-send-email-eli@mellanox.com> References: <1389714323-20130-1-git-send-email-eli@mellanox.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 Use mlx5_core_warn(), which is the standard warning emitter function, instead of pr_warn. Signed-off-by: Eli Cohen --- drivers/net/ethernet/mellanox/mlx5/core/qp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/qp.c b/drivers/net/ethernet/mellanox/mlx5/core/qp.c index e794184..5105762 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/qp.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/qp.c @@ -84,7 +84,8 @@ int mlx5_core_create_qp(struct mlx5_core_dev *dev, } if (out.hdr.status) { - pr_warn("current num of QPs 0x%x\n", atomic_read(&dev->num_qps)); + mlx5_core_warn(dev, "current num of QPs 0x%x\n", + atomic_read(&dev->num_qps)); return mlx5_cmd_status_to_err(&out.hdr); }