From e2245ce3841ae9ad1f6bddd2ef6682d95e15d152 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Fri, 28 Dec 2012 23:31:12 +0000 Subject: [PATCH] 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 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4671 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_vdisk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index 90a79e755..6a6348f03 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -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);