bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 32/41] tmpfs: Port to x86_64


From: Sergey Bugaev
Subject: [PATCH 32/41] tmpfs: Port to x86_64
Date: Tue, 9 May 2023 00:31:27 +0300

---
 tmpfs/tmpfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
     }
 
-- 
2.40.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]