浏览代码

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>
Sheng Yong 10 年之前
父节点
当前提交
1a7e985dd1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/ubifs/dir.c

+ 1 - 1
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);
 	}