mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 18:51:27 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user