From patchwork Wed Jan 22 09:29:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 233389 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=-5.7 required=3.0 tests=DATE_IN_PAST_03_06, 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 14075C33CAF for ; Wed, 22 Jan 2020 13:27:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D5CE224685 for ; Wed, 22 Jan 2020 13:27:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579699638; bh=FjVa/TtanWhsbNi+fN2ck1+11LWGxXUxjOdAbshIHZs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=Y1FLf068J6DHRgrXFsm6KQ09xetBwqxuxHDsvuRZWelgFU6xMt6440ww5z4prSaJq GkyS/QY7LrtcnstrJeidEzqfGUvZXq1t7CxaLKvOt14Rz0+6lwgdGnbcTH9SVQX4tv tGOG0yi7ctYimM5LCY7mNm98SuLB7SC+OUZhIXGA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730782AbgAVN1R (ORCPT ); Wed, 22 Jan 2020 08:27:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:48540 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730635AbgAVN1R (ORCPT ); Wed, 22 Jan 2020 08:27:17 -0500 Received: from localhost (unknown [84.241.205.26]) (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 E682324690; Wed, 22 Jan 2020 13:27:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579699636; bh=FjVa/TtanWhsbNi+fN2ck1+11LWGxXUxjOdAbshIHZs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zYrUfLeEUx7N/GYJq9y40Zb/ktPMbKyUsbbY5NcY09QRYBk+xrGjWs06vb7xkitMK IY2JxD8z4Nt1XZWbZfmrQqafsS9OP8HizHXjRdG7/1Y0x6R+CKq8LWVAxeswZGx5eL ENnOHsnMfH7HZbvtwbWETowafeJJV0SMcJXmHM+s= 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 5.4 204/222] scsi: target: core: Fix a pr_debug() argument Date: Wed, 22 Jan 2020 10:29:50 +0100 Message-Id: <20200122092848.308412177@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200122092833.339495161@linuxfoundation.org> References: <20200122092833.339495161@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 @@ -118,7 +118,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; }