aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/cdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/ubi/cdev.c')
-rw-r--r--drivers/mtd/ubi/cdev.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/cdev.c b/drivers/mtd/ubi/cdev.c
index 1024c106c899..9a2b217941f7 100644
--- a/drivers/mtd/ubi/cdev.c
+++ b/drivers/mtd/ubi/cdev.c
@@ -113,7 +113,8 @@ static int vol_cdev_open(struct inode *inode, struct file *file)
113 else 113 else
114 mode = UBI_READONLY; 114 mode = UBI_READONLY;
115 115
116 dbg_gen("open volume %d, mode %d", vol_id, mode); 116 dbg_gen("open device %d, volume %d, mode %d",
117 ubi_num, vol_id, mode);
117 118
118 desc = ubi_open_volume(ubi_num, vol_id, mode); 119 desc = ubi_open_volume(ubi_num, vol_id, mode);
119 if (IS_ERR(desc)) 120 if (IS_ERR(desc))
@@ -128,7 +129,8 @@ static int vol_cdev_release(struct inode *inode, struct file *file)
128 struct ubi_volume_desc *desc = file->private_data; 129 struct ubi_volume_desc *desc = file->private_data;
129 struct ubi_volume *vol = desc->vol; 130 struct ubi_volume *vol = desc->vol;
130 131
131 dbg_gen("release volume %d, mode %d", vol->vol_id, desc->mode); 132 dbg_gen("release device %d, volume %d, mode %d",
133 vol->ubi->ubi_num, vol->vol_id, desc->mode);
132 134
133 if (vol->updating) { 135 if (vol->updating) {
134 ubi_warn("update of volume %d not finished, volume is damaged", 136 ubi_warn("update of volume %d not finished, volume is damaged",