Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sheng Yong and committed by
Artem Bityutskiy
1a7e985d 180a5357

+1 -1
+1 -1
fs/ubifs/dir.c
··· 151 151 iput(inode); 152 152 return ERR_PTR(-EINVAL); 153 153 } 154 - ubifs_warn(c, "running out of inode numbers (current %lu, max %d)", 154 + ubifs_warn(c, "running out of inode numbers (current %lu, max %u)", 155 155 (unsigned long)c->highest_inum, INUM_WATERMARK); 156 156 } 157 157