diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-05-07 11:24:14 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-05-18 05:28:25 -0400 |
commit | e1cf7e6dd4ffd4391391e4e08b0fd44681b0e74d (patch) | |
tree | a80c1063b918485c037c4c1267296642ca6fabbf /drivers/mtd/ubi/cdev.c | |
parent | f089c0b28cdba1076aa8335dcaaaacc3dafc7d36 (diff) |
UBI: improve debugging messages
Various minor improvements to the debugging messages which
I found useful while hunting problems.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/cdev.c')
-rw-r--r-- | drivers/mtd/ubi/cdev.c | 6 |
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", |