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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue