summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2023-10-09 13:52:36 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-10-13 11:17:11 +0200
commit4760228e8bbdf80d28e4cdcc3404d4ae5476a2e2 (patch)
tree65cdc065d03cb23028c6c636e32bbd305baa2de2 /lib
parent619f12ddc0f320df5335ac58bcdc9a316d62a253 (diff)
downloadbarebox-4760228e8bbdf80d28e4cdcc3404d4ae5476a2e2.tar.gz
barebox-4760228e8bbdf80d28e4cdcc3404d4ae5476a2e2.tar.xz
lib: random: don't duplicate error/warning prefix in log message
pr_err and pr_warn already print an ERROR/WARNING prefix, so no need to duplicate it. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20231009115239.2291016-2-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/random.c b/lib/random.c
index c6532df552..e83935d0e1 100644
--- a/lib/random.c
+++ b/lib/random.c
@@ -68,11 +68,11 @@ int get_crypto_bytes(void *buf, int len)
}
if (!IS_ENABLED(CONFIG_ALLOW_PRNG_FALLBACK)) {
- pr_err("error: no HWRNG available!\n");
+ pr_err("no HWRNG available!\n");
return err;
}
- pr_warn("warning: falling back to Pseudo RNG source!\n");
+ pr_warn("falling back to Pseudo RNG source!\n");
get_random_bytes(buf, len);