summaryrefslogtreecommitdiff
path: root/drivers/rng
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-09-17 17:49:02 +0300
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2020-09-18 23:23:58 +0300
commitcf0bf89227594cf3fdcae8242f023685cdd11cb7 (patch)
treeac86eaa184f41a4825f664b7af1beb484f406c98 /drivers/rng
parent9de3126e80cdac7ee15b6671065a952184533dda (diff)
downloadu-boot-cf0bf89227594cf3fdcae8242f023685cdd11cb7.tar.xz
rng: stm32mp1: use log() instead of printf()
The logging system provides flexible filtering and enhanced output. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Diffstat (limited to 'drivers/rng')
-rw-r--r--drivers/rng/stm32mp1_rng.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/rng/stm32mp1_rng.c b/drivers/rng/stm32mp1_rng.c
index 7ef7ff9756..c1bae180f7 100644
--- a/drivers/rng/stm32mp1_rng.c
+++ b/drivers/rng/stm32mp1_rng.c
@@ -3,6 +3,8 @@
* Copyright (c) 2019, Linaro Limited
*/
+#define LOG_CATEGORY UCLASS_RNG
+
#include <common.h>
#include <clk.h>
#include <dm.h>
@@ -53,7 +55,7 @@ static int stm32_rng_read(struct udevice *dev, void *data, size_t len)
for (i = 0; i < 12; i++)
readl(pdata->base + RNG_DR);
if (readl(pdata->base + RNG_SR) & RNG_SR_SEIS) {
- printf("RNG Noise");
+ log_err("RNG Noise");
return -EIO;
}
/* start again */