scst_vdisk: Include device name in EOD error message

Include the device name in the end-of-device error message to make it
easy to find out which device this message applies to.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4671 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2012-12-28 23:31:12 +00:00
parent 874f8d5943
commit e2245ce384

View File

@@ -1218,8 +1218,9 @@ static bool vdisk_parse_offset(struct vdisk_cmd_params *p, struct scst_cmd *cmd)
if (unlikely((loff + data_len) > virt_dev->file_size) &&
(!(cmd->op_flags & SCST_LBA_NOT_VALID))) {
PRINT_INFO("Access beyond the end of the device "
PRINT_INFO("Access beyond the end of device %s "
"(%lld of %lld, data len %lld)",
virt_dev->name,
(long long unsigned int)loff,
(long long unsigned int)virt_dev->file_size,
(long long unsigned int)data_len);