UBI: Extend UBI layer debug/messaging capabilities
If there is more then one UBI device mounted, there is no way to
distinguish between messages from different UBI devices.
Add device number to all ubi layer message types.

The R/O block driver messages were replaced by pr_* since
ubi_device structure is not used by it.

Amended a bit by Artem.

Signed-off-by: Tanya Brokhman <tlinder@codeaurora.org>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>

Conflicts:
	drivers/mtd/ubi/block.c
	drivers/mtd/ubi/build.c
	drivers/mtd/ubi/cdev.c
	drivers/mtd/ubi/debug.c
	drivers/mtd/ubi/fastmap.c
	drivers/mtd/ubi/io.c
	drivers/mtd/ubi/ubi.h
	drivers/mtd/ubi/vmt.c
	drivers/mtd/ubi/wl.c

Reworked it for barebox.

Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent fbc4609 commit 379c86f1afb2a11fd8b47534cf7148cf536c8632
@Tanya Brokhman Tanya Brokhman authored on 27 May 2016
Sascha Hauer committed on 27 May 2016
Showing 13 changed files
View
drivers/mtd/ubi/attach.c
View
drivers/mtd/ubi/barebox.c
View
drivers/mtd/ubi/build.c
View
drivers/mtd/ubi/debug.c
View
drivers/mtd/ubi/eba.c
View
drivers/mtd/ubi/fastmap.c
View
drivers/mtd/ubi/io.c
View
drivers/mtd/ubi/kapi.c
View
drivers/mtd/ubi/misc.c
View
drivers/mtd/ubi/ubi.h
View
drivers/mtd/ubi/vmt.c
View
drivers/mtd/ubi/vtbl.c
View
drivers/mtd/ubi/wl.c