* [PATCH] quota_v2: fix gcc format warning
@ 2005-01-10 23:00 Randy.Dunlap
0 siblings, 0 replies; only message in thread
From: Randy.Dunlap @ 2005-01-10 23:00 UTC (permalink / raw)
To: jack; +Cc: fsdev
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.
Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
diffstat:=
fs/quota_v2.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -Naurp ./fs/quota_v2.c~quota_types ./fs/quota_v2.c
--- ./fs/quota_v2.c~quota_types 2005-01-10 10:38:40.264384176 -0800
+++ ./fs/quota_v2.c 2005-01-10 12:21:52.264057144 -0800
@@ -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);
---
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-10 23:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-10 23:00 [PATCH] quota_v2: fix gcc format warning Randy.Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).