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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>1 parent 3195019 commit 6d7160c
1 file changed
+4
-2
lines changed| 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