aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/vmt.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-05-07 11:24:14 -0400
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-05-18 05:28:25 -0400
commite1cf7e6dd4ffd4391391e4e08b0fd44681b0e74d (patch)
treea80c1063b918485c037c4c1267296642ca6fabbf /drivers/mtd/ubi/vmt.c
parentf089c0b28cdba1076aa8335dcaaaacc3dafc7d36 (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/vmt.c')
-rw-r--r--drivers/mtd/ubi/vmt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/mtd/ubi/vmt.c b/drivers/mtd/ubi/vmt.c
index 328c1242920e..419599d62b29 100644
--- a/drivers/mtd/ubi/vmt.c
+++ b/drivers/mtd/ubi/vmt.c
@@ -232,8 +232,8 @@ int ubi_create_volume(struct ubi_device *ubi, struct ubi_mkvol_req *req)
232 req->vol_id = vol_id; 232 req->vol_id = vol_id;
233 } 233 }
234 234
235 dbg_gen("volume ID %d, %llu bytes, type %d, name %s", 235 dbg_gen("create device %d, volume %d, %llu bytes, type %d, name %s",
236 vol_id, (unsigned long long)req->bytes, 236 ubi->ubi_num, vol_id, (unsigned long long)req->bytes,
237 (int)req->vol_type, req->name); 237 (int)req->vol_type, req->name);
238 238
239 /* Ensure that this volume does not exist */ 239 /* Ensure that this volume does not exist */
@@ -412,7 +412,7 @@ int ubi_remove_volume(struct ubi_volume_desc *desc, int no_vtbl)
412 struct ubi_device *ubi = vol->ubi; 412 struct ubi_device *ubi = vol->ubi;
413 int i, err, vol_id = vol->vol_id, reserved_pebs = vol->reserved_pebs; 413 int i, err, vol_id = vol->vol_id, reserved_pebs = vol->reserved_pebs;
414 414
415 dbg_gen("remove UBI volume %d", vol_id); 415 dbg_gen("remove device %d, volume %d", ubi->ubi_num, vol_id);
416 ubi_assert(desc->mode == UBI_EXCLUSIVE); 416 ubi_assert(desc->mode == UBI_EXCLUSIVE);
417 ubi_assert(vol == ubi->volumes[vol_id]); 417 ubi_assert(vol == ubi->volumes[vol_id]);
418 418
@@ -498,8 +498,8 @@ int ubi_resize_volume(struct ubi_volume_desc *desc, int reserved_pebs)
498 if (ubi->ro_mode) 498 if (ubi->ro_mode)
499 return -EROFS; 499 return -EROFS;
500 500
501 dbg_gen("re-size volume %d to from %d to %d PEBs", 501 dbg_gen("re-size device %d, volume %d to from %d to %d PEBs",
502 vol_id, vol->reserved_pebs, reserved_pebs); 502 ubi->ubi_num, vol_id, vol->reserved_pebs, reserved_pebs);
503 503
504 if (vol->vol_type == UBI_STATIC_VOLUME && 504 if (vol->vol_type == UBI_STATIC_VOLUME &&
505 reserved_pebs < vol->used_ebs) { 505 reserved_pebs < vol->used_ebs) {