summaryrefslogtreecommitdiffstats
path: root/tools/depmod.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-13 04:30:18 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-13 04:30:18 +0000
commit699034d85536ab2090282d2fa7bd8cc4825ce693 (patch)
treee0d85a190b3d434f7270a4e900441c636e46b387 /tools/depmod.c
parentAdding upstream version 32+20240327. (diff)
downloadkmod-upstream.tar.xz
kmod-upstream.zip
Adding upstream version 32+20240611.upstream/32+20240611upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tools/depmod.c')
-rw-r--r--tools/depmod.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/depmod.c b/tools/depmod.c
index 06618fa..8e9e2d1 100644
--- a/tools/depmod.c
+++ b/tools/depmod.c
@@ -2638,8 +2638,8 @@ static int depmod_output(struct depmod *depmod, FILE *out)
int mode = 0644;
int fd;
- snprintf(tmp, sizeof(tmp), "%s.%i.%li.%li", itr->name, getpid(),
- tv.tv_usec, tv.tv_sec);
+ snprintf(tmp, sizeof(tmp), "%s.%i.%lli.%lli", itr->name, getpid(),
+ (long long)tv.tv_usec, (long long)tv.tv_sec);
fd = openat(dfd, tmp, flags, mode);
if (fd < 0) {
ERR("openat(%s, %s, %o, %o): %m\n",