]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: core: Shorten long warning messages
authorLi Zhijian <lizhijian@fujitsu.com>
Thu, 30 Jun 2022 02:38:11 +0000 (02:38 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 7 Jul 2022 20:57:16 +0000 (16:57 -0400)
commit795b9cf506c395c1f02112fd55e6c4091af6b1ad
tree36993e9da013900c80c180e5fe92ba3e41a3d22d
parent1482f362165607a52037c1ed3b9ea64ee5fddbed
scsi: core: Shorten long warning messages

sdev_printk() will only accept messages up to 128 bytes.

Shorten strings exceeding 128 bytes avoid printing an incomplete sentence
like:

  [  475.156955] sd 9:0:0:0: Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatical

Link: https://lore.kernel.org/r/20220630024516.1571209-1-lizhijian@fujitsu.com
Suggested-by: Finn Thain <fthain@linux-m68k.org>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_error.c