Commit 6d7160c
scsi: core: Improve warning message in scsi_device_block()
If __scsi_internal_device_block() returns an error, it is always -EINVAL
because of an invalid state transition. For debugging purposes, it makes
more sense to print the device state.
Signed-off-by: Martin Wilck <mwilck@suse.com>
Link: https://lore.kernel.org/r/20230614103616.31857-8-mwilck@suse.com
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 3195019 commit 6d7160c
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2784 | 2784 | | |
2785 | 2785 | | |
2786 | 2786 | | |
| 2787 | + | |
2787 | 2788 | | |
2788 | 2789 | | |
2789 | 2790 | | |
| 2791 | + | |
2790 | 2792 | | |
2791 | 2793 | | |
2792 | 2794 | | |
| |||
2797 | 2799 | | |
2798 | 2800 | | |
2799 | 2801 | | |
2800 | | - | |
2801 | | - | |
| 2802 | + | |
| 2803 | + | |
2802 | 2804 | | |
2803 | 2805 | | |
2804 | 2806 | | |
| |||
0 commit comments