diff options
author | Christoph Hellwig <hch@infradead.org> | 2008-11-28 14:23:33 +1100 |
---|---|---|
committer | Niv Sardi <xaiki@sgi.com> | 2008-12-01 11:07:37 +1100 |
commit | 65795910c1b798f8a47181b48cf6eb163a15e778 (patch) | |
tree | 1b06b5b0de03166cdb73f6c9e25dc0207e28d53f /fs/xfs/linux-2.6/xfs_stats.c | |
parent | 6c31b93a14a453c8756ffd228e24910ffdf30c5d (diff) | |
download | op-kernel-dev-65795910c1b798f8a47181b48cf6eb163a15e778.zip op-kernel-dev-65795910c1b798f8a47181b48cf6eb163a15e778.tar.gz |
[XFS] fix spurious gcc warnings
Some recent gcc warnings don't like passing string variables to
printf-like functions without using at least a "%s" format string.
Change the two occurances of that in xfs to please gcc.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: Niv Sardi <xaiki@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_stats.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_stats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/linux-2.6/xfs_stats.c b/fs/xfs/linux-2.6/xfs_stats.c index 64f4ec9..c3526d4 100644 --- a/fs/xfs/linux-2.6/xfs_stats.c +++ b/fs/xfs/linux-2.6/xfs_stats.c @@ -61,7 +61,7 @@ xfs_read_xfsstats( /* Loop over all stats groups */ for (i=j=len = 0; i < ARRAY_SIZE(xstats); i++) { - len += sprintf(buffer + len, xstats[i].desc); + len += sprintf(buffer + len, "%s", xstats[i].desc); /* inner loop does each group */ while (j < xstats[i].endpoint) { val = 0; |