summaryrefslogtreecommitdiffstats
path: root/fs/ubifs
diff options
context:
space:
mode:
authorSheng Yong <shengyong1@huawei.com>2015-04-03 03:13:42 +0000
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2015-04-13 13:37:31 +0300
commit1a7e985dd1bf5939af0f56bbd6d13d2caf48dd63 (patch)
tree34bf4428c16358c6c1cef4b39698a09a4af61b8b /fs/ubifs
parent180a53577b809026af744e99a35b3a3a0056520b (diff)
downloadblackbird-op-linux-1a7e985dd1bf5939af0f56bbd6d13d2caf48dd63.tar.gz
blackbird-op-linux-1a7e985dd1bf5939af0f56bbd6d13d2caf48dd63.zip
UBIFS: fix output format of INUM_WATERMARK
The INUM_WATERMARK is a unsigned 32bit value, `%d' prints it as negatave: [ 103.682255] UBIFS warning (ubi0:0 pid 691): ubifs_new_inode: running out of inode numbers (current 122763, max -256) Fix it as: [ 154.422940] UBIFS warning (ubi0:0 pid 688): ubifs_new_inode: running out of inode numbers (current 122765, max 4294967040) Signed-off-by: Sheng Yong <shengyong1@huawei.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'fs/ubifs')
-rw-r--r--fs/ubifs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c
index 90fe60c2f112..02d1ee778df0 100644
--- a/fs/ubifs/dir.c
+++ b/fs/ubifs/dir.c
@@ -151,7 +151,7 @@ struct inode *ubifs_new_inode(struct ubifs_info *c, const struct inode *dir,
iput(inode);
return ERR_PTR(-EINVAL);
}
- ubifs_warn(c, "running out of inode numbers (current %lu, max %d)",
+ ubifs_warn(c, "running out of inode numbers (current %lu, max %u)",
(unsigned long)c->highest_inum, INUM_WATERMARK);
}
OpenPOWER on IntegriCloud