]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: scsi_debug: Stop printing extra function name in debug logs
authorJohn Garry <john.g.garry@oracle.com>
Thu, 13 Nov 2025 13:36:40 +0000 (13:36 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 17 Dec 2025 02:48:22 +0000 (21:48 -0500)
commita743b120227a371f37c46738d91cc7a9691dbcf6
tree6dd9fa73fe69f3e57240ac7a21d94e71b8ef3066
parente642331c942003f58dba6e33c8ee93402211b7b6
scsi: scsi_debug: Stop printing extra function name in debug logs

The driver defines as follows pr_fmt:

  #define pr_fmt(fmt) KBUILD_MODNAME ":%s: " fmt, __func__

...meaning that we already get the function name added in any debug
statements.

Remove using of __func__ in debug logs to avoid the duplication.

For instances of where the function name was being printed, add some
verbose comment to avoid using "" (which would be a bit silly).

It would be nicer to stop using pr_fmt(), but that would mean rewriting
approx 100 debug statements to have a sensible and clear message.

Signed-off-by: John Garry <john.g.garry@oracle.com>
Link: https://patch.msgid.link/20251113133645.2898748-2-john.g.garry@oracle.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debug.c