Skip to contentSkip to conversation

quota_v2: fix gcc format warning

PATCH New Randy.Dunlap 1 participant 1 message Jan 10, 2005 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 quota_v2: fix gcc format warning

Linux 2.6.10-bk13

Fix gcc format warning:
fs/quota_v2.c:399: warning: int format, different type arg (arg 2) <ret> is ssize_t; use "z" instead of "Z" for gcc 2.9x compatibility.

diffstat:=

 fs/quota_v2.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
fs/quota_v2.c renamed from fs/quota_v2.c~quota_types +1 -1
diff -Naurp ./fs/quota_v2.c~quota_types ./fs/quota_v2.c
@@ -396,7 +396,7 @@ static int v2_write_dquot(struct dquot *
 	/* dq_off is guarded by dqio_sem */
 	if (!dquot->dq_off)
 		if ((ret = dq_insert_tree(dquot)) < 0) {
-			printk(KERN_ERR "VFS: Error %d occurred while creating quota.\n", ret);
+			printk(KERN_ERR "VFS: Error %zd occurred while creating quota.\n", ret);
 			return ret;
 		}
 	spin_lock(&dq_data_lock);

---