Commit f562acb8 authored by James Bottomley's avatar James Bottomley

SCSI: Quieten the incorrect state change message

Make it a scsi logging message instead (under ERROR_RECOVERY)
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent f321f3ca
...@@ -1723,11 +1723,12 @@ scsi_device_set_state(struct scsi_device *sdev, enum scsi_device_state state) ...@@ -1723,11 +1723,12 @@ scsi_device_set_state(struct scsi_device *sdev, enum scsi_device_state state)
return 0; return 0;
illegal: illegal:
dev_printk(KERN_ERR, &sdev->sdev_gendev, SCSI_LOG_ERROR_RECOVERY(1,
"Illegal state transition %s->%s\n", dev_printk(KERN_ERR, &sdev->sdev_gendev,
scsi_device_state_name(oldstate), "Illegal state transition %s->%s\n",
scsi_device_state_name(state)); scsi_device_state_name(oldstate),
WARN_ON(1); scsi_device_state_name(state))
);
return -EINVAL; return -EINVAL;
} }
EXPORT_SYMBOL(scsi_device_set_state); EXPORT_SYMBOL(scsi_device_set_state);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment