Patchwork UBI: drop redundant "UBI error" string

login
register
mail settings
Submitter Mike Frysinger
Date April 23, 2013, 1:29 a.m.
Message ID <1366680595-6197-1-git-send-email-vapier@gentoo.org>
Download mbox | patch
Permalink /patch/238705/
State Superseded
Headers show

Comments

Mike Frysinger - April 23, 2013, 1:29 a.m.
The ubi_err() macro automatically prefixes "UBI error" before the message.
By also using it here, we get a log like so:
	UBI error: ubi_init: UBI error: cannot initialize UBI, error -19

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 drivers/mtd/ubi/build.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c
index a561335..eaa2d4e 100644
--- a/drivers/mtd/ubi/build.c
+++ b/drivers/mtd/ubi/build.c
@@ -1309,7 +1309,7 @@  out_version:
 out_class:
 	class_destroy(ubi_class);
 out:
-	ubi_err("UBI error: cannot initialize UBI, error %d", err);
+	ubi_err("cannot initialize UBI, error %d", err);
 	return err;
 }
 late_initcall(ubi_init);