summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2023-05-09 00:31:27 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-05-10 02:44:12 +0200
commit3e0a0154b415d611590f5525d9ae74b3ebf7b782 (patch)
treee1fd24f75ddfa01b45b6fe0704f54c0f80716213
parentc40df15b14c74762b49c1a8a1e59aaf7e7f35956 (diff)
tmpfs: Port to x86_64
Message-Id: <20230508213136.608575-33-bugaevc@gmail.com>
-rw-r--r--tmpfs/tmpfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tmpfs/tmpfs.c b/tmpfs/tmpfs.c
index 5483ec87..195813c4 100644
--- a/tmpfs/tmpfs.c
+++ b/tmpfs/tmpfs.c
@@ -282,7 +282,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, "%" PRIi64 "%c", lim, sfx);
err = argz_add (argz, argz_len, buf);
}