[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH hurd 04/11] Fix printf format specifiers
From: |
Flavio Cruz |
Subject: |
[PATCH hurd 04/11] Fix printf format specifiers |
Date: |
Fri, 29 Dec 2023 16:20:58 -0500 |
---
pci-arbiter/options.c | 2 +-
utils/ftpdir.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pci-arbiter/options.c b/pci-arbiter/options.c
index e0455f4..e578810 100644
--- a/pci-arbiter/options.c
+++ b/pci-arbiter/options.c
@@ -379,7 +379,7 @@ netfs_append_args (char **argz, size_t * argz_len)
}
if (fs->params.node_cache_max != NODE_CACHE_MAX)
- ADD_OPT ("--ncache=%u", fs->params.node_cache_max);
+ ADD_OPT ("--ncache=%zu", fs->params.node_cache_max);
if (fs->params.next_task != MACH_PORT_NULL)
ADD_OPT ("--next-task=%u", fs->params.next_task);
diff --git a/utils/ftpdir.c b/utils/ftpdir.c
index 86ef58f..dd4d65d 100644
--- a/utils/ftpdir.c
+++ b/utils/ftpdir.c
@@ -203,7 +203,7 @@ pdirent (const char *name, const struct stat *st, const
char *symlink_target,
{
char timebuf[20];
strftime (timebuf, sizeof timebuf, "%Y-%m-%d %H:%M", localtime
(&st->st_mtime));
- printf ("%6o %2ld %5d %5d %6" PRIi64 " %s %s\n",
+ printf ("%6o %2zu %5d %5d %6" PRIi64 " %s %s\n",
st->st_mode, st->st_nlink, st->st_uid, st->st_gid, st->st_size,
timebuf, name);
if (symlink_target)
--
2.39.2
- [PATCH hurd 01/11] Initialize a few error variables to avoid GCC warnings, Flavio Cruz, 2023/12/29
- [PATCH hurd 02/11] Cast bootinfo to struct diskfs_control * to silence warning, Flavio Cruz, 2023/12/29
- [PATCH hurd 04/11] Fix printf format specifiers,
Flavio Cruz <=
- [PATCH hurd 07/11] Fix a few pointer related warnings., Flavio Cruz, 2023/12/29
- [PATCH hurd 05/11] x86_64: utmp uses int32_t to store time so use a temporary variable, Flavio Cruz, 2023/12/29
- [PATCH hurd 03/11] Use mach_msg_type_number_t whenever required to avoid warnings, Flavio Cruz, 2023/12/29
- [PATCH hurd 06/11] x86_64: use 21 bytes in libps since %z might require more characters., Flavio Cruz, 2023/12/29
- [PATCH hurd 09/11] Fix overflow issues in tmpfs and vmallocate, Flavio Cruz, 2023/12/29