Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

IB/srp: Print "ib_srp: " prefix once

pr_debug() already prints prefix PFX. Avoid that PFX is printed
twice if the debug statement in srp_add_target() is enabled.

Fixes: 34aa654ecb8e ("IB/srp: Avoid that I/O hangs due to a cable pull during LUN scanning")
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Tested-by: Laurence Oberman <loberman@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Doug Ledford <dledford@redhat.com>

authored by

Bart Van Assche and committed by
Doug Ledford
cf1acab7 38a2d0d4

+1 -1
+1 -1
drivers/infiniband/ulp/srp/ib_srp.c
··· 2840 2840 goto out; 2841 2841 } 2842 2842 2843 - pr_debug(PFX "%s: SCSI scan succeeded - detected %d LUNs\n", 2843 + pr_debug("%s: SCSI scan succeeded - detected %d LUNs\n", 2844 2844 dev_name(&target->scsi_host->shost_gendev), 2845 2845 srp_sdev_count(target->scsi_host)); 2846 2846