]> Git Repo - linux.git/commitdiff
scsi: target: core: Fix a pr_debug() argument
authorBart Van Assche <[email protected]>
Thu, 7 Nov 2019 21:55:25 +0000 (13:55 -0800)
committerMartin K. Petersen <[email protected]>
Wed, 20 Nov 2019 02:41:11 +0000 (21:41 -0500)
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bart Van Assche <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
drivers/target/target_core_fabric_lib.c

index 3c79411c4cd026f0068635d6befb528cf0c77b03..6b4b354c88aa09d100b77bc6b1f4cf2dfb0929be 100644 (file)
@@ -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;
        }
 
This page took 0.083806 seconds and 4 git commands to generate.