diff options
author | Heiner Kallweit <[email protected]> | 2021-09-11 14:11:59 +0200 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2021-09-14 00:07:37 -0400 |
commit | 4521428c48118b0f5f7a637ce7dedd76c29bcdaa (patch) | |
tree | a715a774dd8d54f52180d78bd9315b4108bd2d92 /scripts/gdb/linux/utils.py | |
parent | 1cbc9ad3eecd492be33b727b4606ae75bc880676 (diff) |
scsi: sd: Make sd_spinup_disk() less noisy
sd_spinup_disk() is a little bit noisy after commit 848ade90ba9c ("scsi:
sd: Do not exit sd_spinup_disk() quietly"):
scsi 0:0:0:0: Direct-Access Multiple Card Reader 1.00 PQ: 0 ANSI: 0
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] Media removed, stopped polling
sd 0:0:0:0: [sda] Media removed, stopped polling
sd 0:0:0:0: [sda] Attached SCSI removable disk
sd 0:0:0:0: [sda] Media removed, stopped polling
There's not really a benefit in printing the same message multiple
times. Therefore print it only if media_present was previously set.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Bart Van Assche <[email protected]>
Signed-off-by: Heiner Kallweit <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions