From mboxrd@z Thu Jan 1 00:00:00 1970 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=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,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 092EAC33CAF for ; Thu, 16 Jan 2020 17:32:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CE85E246A9 for ; Thu, 16 Jan 2020 17:32:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579195938; bh=v6d3lsBHjk1X70vkdK+hURgWg1dn1U++UNDvwwBTu44=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=UajqassGO2wZjBEk/qJwUgxDLGiv94gEBevE18ZKGHjZ+REG35va9nCvU9Uxdnys7 jIP+CGDR+GzNKYPADIMuHnWtOQ9JW+8DQM+yqidweKi1jwGafaAB+eiwRIHMedOqB+ RUItpONsXYXmOMYWT10hFMLE+1EaxphTpluPMDtY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404550AbgAPRcR (ORCPT ); Thu, 16 Jan 2020 12:32:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:43954 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404661AbgAPRbB (ORCPT ); Thu, 16 Jan 2020 12:31:01 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 35FC5246A9; Thu, 16 Jan 2020 17:31:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579195861; bh=v6d3lsBHjk1X70vkdK+hURgWg1dn1U++UNDvwwBTu44=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=comiNmynCA+dy6In64cR8AYEVweLGEs14quF6RW3mtapEeNh5XiYufq80rNgynUBS EDkNp29kcHcqRRdF4iJIBBi0SZDsG061KzqDq1ZRBbeldqhcn/aWGdlX5lhLpYJoBP dKSbSSpJbI1Ai9+ecnF8yxSKOvMZF3xa9tz+fBO0= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Bart Van Assche , Christoph Hellwig , "Martin K . Petersen" , Sasha Levin , linux-scsi@vger.kernel.org, target-devel@vger.kernel.org Subject: [PATCH AUTOSEL 4.14 359/371] scsi: target: core: Fix a pr_debug() argument Date: Thu, 16 Jan 2020 12:23:51 -0500 Message-Id: <20200116172403.18149-302-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200116172403.18149-1-sashal@kernel.org> References: <20200116172403.18149-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bart Van Assche [ Upstream commit c941e0d172605731de9b4628bd4146d35cf2e7d6 ] 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: Sasha Levin --- drivers/target/target_core_fabric_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/target/target_core_fabric_lib.c b/drivers/target/target_core_fabric_lib.c index 508da345b73f..95aa47ac4dcd 100644 --- 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; } -- 2.20.1