Skip to content

Commit c941e0d

Browse files
bvanasschemartinkpetersen
authored andcommitted
scsi: target: core: Fix a pr_debug() argument
Print the string for which conversion failed instead of printing the function name twice. Fixes: 2650d71 ("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]>
1 parent 238191d commit c941e0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/target/target_core_fabric_lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ static int srp_get_pr_transport_id(
118118
memset(buf + 8, 0, leading_zero_bytes);
119119
rc = hex2bin(buf + 8 + leading_zero_bytes, p, count);
120120
if (rc < 0) {
121-
pr_debug("hex2bin failed for %s: %d\n", __func__, rc);
121+
pr_debug("hex2bin failed for %s: %d\n", p, rc);
122122
return rc;
123123
}
124124

0 commit comments

Comments
 (0)