summaryrefslogtreecommitdiff
path: root/tmpfs
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-06-11 21:40:47 +0000
committerRoland McGrath <roland@gnu.org>2002-06-11 21:40:47 +0000
commit0393dca401038f070914450f27574baba9f7afe1 (patch)
tree2c2a25ebac4e26a4aaf4793f8eec3c171fb8b4cd /tmpfs
parente9ab12d26077f096467976fdf3d57228cd052fd1 (diff)
2002-06-08 Roland McGrath <roland@frob.com>
* tmpfs.c (diskfs_append_args): Use %Ld format for off_t value.
Diffstat (limited to 'tmpfs')
-rw-r--r--tmpfs/tmpfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tmpfs/tmpfs.c b/tmpfs/tmpfs.c
index 536527f7..47ab8a6c 100644
--- a/tmpfs/tmpfs.c
+++ b/tmpfs/tmpfs.c
@@ -245,7 +245,7 @@ diskfs_append_args (char **argz, size_t *argz_len)
#define S(n, c) if ((lim & ((1 << n) - 1)) == 0) sfx = c, lim >>= n
S (30, 'G'); else S (20, 'M'); else S (10, 'K'); else sfx = '\0';
#undef S
- snprintf (buf, sizeof buf, "%ld%c", lim, sfx);
+ snprintf (buf, sizeof buf, "%Ld%c", lim, sfx);
err = argz_add (argz, argz_len, buf);
}