diff options
author | Martin Wilck <[email protected]> | 2023-06-14 12:36:16 +0200 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2023-06-16 12:19:59 -0400 |
commit | 6d7160c7da6fa3010252910a1680c62ababa6c2f (patch) | |
tree | b3ce2a2d0b1f3b1ef3a262e469429b097b9325ae /scripts/generate_rust_analyzer.py | |
parent | 31950192d939a969415d0e1da4c62598023b0850 (diff) |
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]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions