Skip to contentSkip to conversation

scsi: scsi_debug: Missing "\n" in sdev_printk() in scsi_debug_device_reset()

PATCH Applied Ewan D. Milne 4 participants 4 messages May 19 – May 23 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: scsi_debug: Missing "\n" in sdev_printk() in scsi_debug_device_reset()

A "\n" at the end of the sdev_printk() string appears to have been inadvertently removed. Add it back for correct log message formatting.

Fixes a743b120227a ("scsi: scsi_debug: Stop printing extra function name in debug logs")
Assisted-by Claude:claude-opus-4-6
---
 drivers/scsi/scsi_debug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/scsi_debug.c +1 -1
index 1515495fd9ea..040c5e1e713a 100644
@@ -6953,7 +6953,7 @@ static int scsi_debug_device_reset(struct scsi_cmnd *SCpnt)
 	++num_dev_resets;
 
 	if (SDEBUG_OPT_ALL_NOISE & sdebug_opts)
-		sdev_printk(KERN_INFO, sdp, "doing device reset");
+		sdev_printk(KERN_INFO, sdp, "doing device reset\n");
 
 	scsi_debug_stop_all_queued(sdp);
 	if (devip) {
Signature · 1 line
2.52.0