projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f51c527
)
hwrng: histb - Fix the wrong format specifier
author
Zhu Jun
<zhujun2@cmss.chinamobile.com>
Wed, 9 Oct 2024 06:42:44 +0000
(23:42 -0700)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Sat, 19 Oct 2024 00:44:30 +0000
(08:44 +0800)
The format specifier of "unsigned int" in sprintf() should be "%u", not
"%d".
Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/histb-rng.c
patch
|
blob
|
history
diff --git
a/drivers/char/hw_random/histb-rng.c
b/drivers/char/hw_random/histb-rng.c
index
f652e11
..
1b91e88
100644
(file)
--- a/
drivers/char/hw_random/histb-rng.c
+++ b/
drivers/char/hw_random/histb-rng.c
@@
-89,7
+89,7
@@
depth_show(struct device *dev, struct device_attribute *attr, char *buf)
struct histb_rng_priv *priv = dev_get_drvdata(dev);
void __iomem *base = priv->base;
- return sprintf(buf, "%
d
\n", histb_rng_get_depth(base));
+ return sprintf(buf, "%
u
\n", histb_rng_get_depth(base));
}
static ssize_t