[PATCH 11/12] ARM pcm038: Specify pr_fmt and change messages to pr_*
Sascha Hauer
s.hauer at pengutronix.de
Tue Jan 29 03:45:46 EST 2013
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
arch/arm/boards/pcm038/pcm038.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boards/pcm038/pcm038.c b/arch/arm/boards/pcm038/pcm038.c
index ea50a78..5e9c0fd 100644
--- a/arch/arm/boards/pcm038/pcm038.c
+++ b/arch/arm/boards/pcm038/pcm038.c
@@ -13,6 +13,7 @@
*
*
*/
+#define pr_fmt(fmt) "pcm038: " fmt
#include <common.h>
#include <net.h>
@@ -170,7 +171,7 @@ static int pcm038_power_init(void)
/* Clocks have changed. Notify clients */
clock_notifier_call_chain();
} else {
- printf("Failed to initialize PMIC. Will continue with low CPU speed\n");
+ pr_err("Failed to initialize PMIC. Will continue with low CPU speed\n");
}
}
@@ -315,7 +316,7 @@ static int pcm038_devices_init(void)
envdev = "NOR";
}
- printf("Using environment in %s Flash\n", envdev);
+ pr_notice("Using environment in %s Flash\n", envdev);
if (imx_iim_read(1, 1, &uid, 6) == 6)
armlinux_set_serial(uid);
--
1.7.10.4
More information about the barebox
mailing list