From patchwork Wed Jan 22 09:29:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 233584 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 212F4C2D0DB for ; Wed, 22 Jan 2020 09:39:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DEF512468B for ; Wed, 22 Jan 2020 09:39:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579685985; bh=30Llptjkv81UuTF2qcVnmpm5qLWYNlDC5akjxsg2eEg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=wZYoUgsCxUYIezc5gIBFpiCOwv6L3KoA7rQ2cwaXE4MLXQ2/TWDFMsz1qsiTZiugC 5BSZDQl2VkeoDsu5JI7kg0YUXXPzPICYFPzP4CrXQhzrVrwGnTD05t7uWS33QZaXBt LhC4Qxbl5P7Ufvt2lPWSUq0Soq+N/2eDwUr+ISd0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733253AbgAVJjn (ORCPT ); Wed, 22 Jan 2020 04:39:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:57908 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733041AbgAVJjn (ORCPT ); Wed, 22 Jan 2020 04:39:43 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4A38424686; Wed, 22 Jan 2020 09:39:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579685982; bh=30Llptjkv81UuTF2qcVnmpm5qLWYNlDC5akjxsg2eEg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AdCwojRhVJbXC3DYOyb/BN4MYIhV6XrQFR52LkCkw8nIzHfxs5aGvfeHG1VXiXmpf JmrT6D7QFO6rS9uXyg5jxfd8RtWaohFVR6ktFbPZ5Lph7lhPUDCYufj/O3LoGXtCmg 3TaHfrfcJF0oKq4IMWK2Gnu879R4+l+lhMZtVzds= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christoph Hellwig , Bart Van Assche , "Martin K. Petersen" Subject: [PATCH 4.14 60/65] scsi: target: core: Fix a pr_debug() argument Date: Wed, 22 Jan 2020 10:29:45 +0100 Message-Id: <20200122092800.439427579@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200122092750.976732974@linuxfoundation.org> References: <20200122092750.976732974@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Bart Van Assche commit c941e0d172605731de9b4628bd4146d35cf2e7d6 upstream. Print the string for which conversion failed instead of printing the function name twice. Fixes: 2650d71e244f ("target: move transport ID handling to the core") Cc: Christoph Hellwig Link: https://lore.kernel.org/r/20191107215525.64415-1-bvanassche@acm.org Signed-off-by: Bart Van Assche Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/target/target_core_fabric_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/target/target_core_fabric_lib.c +++ b/drivers/target/target_core_fabric_lib.c @@ -131,7 +131,7 @@ static int srp_get_pr_transport_id( memset(buf + 8, 0, leading_zero_bytes); rc = hex2bin(buf + 8 + leading_zero_bytes, p, count); if (rc < 0) { - pr_debug("hex2bin failed for %s: %d\n", __func__, rc); + pr_debug("hex2bin failed for %s: %d\n", p, rc); return rc; }