mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:02:20 +00:00
hwrng: histb - Fix the wrong format specifier
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>
This commit is contained in:
parent
f51c527f17
commit
5dd4aa9c32
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user