summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2007-12-14 16:12:24 +0100
committerHans Ulrich Niedermann <hun@n-dimensional.de>2007-12-14 16:12:24 +0100
commit196100492d7049e87e0c4aa51f435bc5d4efce42 (patch)
treee90ce4f8ffde1cafe1b04da15d1c523bbf24bafc
parent3d14ba70a6e3164556a5f984bd7a183df8a1cd00 (diff)
downloade2tools-196100492d7049e87e0c4aa51f435bc5d4efce42.tar.gz
e2tools-196100492d7049e87e0c4aa51f435bc5d4efce42.tar.xz
e2tools-196100492d7049e87e0c4aa51f435bc5d4efce42.zip
Get rid of 64bit formatstring warning
-rw-r--r--ls.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ls.c b/ls.c
index f9e7e5e..a742a93 100644
--- a/ls.c
+++ b/ls.c
@@ -44,6 +44,8 @@
#include "e2tools.h"
#include "elist.h"
#include <regex.h>
+#include <stdint.h>
+#include <inttypes.h>
/*
* list directory
@@ -657,8 +659,8 @@ void long_disp(ls_file_t *info, int *col, int options)
if (LINUX_S_ISDIR(info->inode.i_mode))
printf("%7d", info->inode.i_size);
else
- printf("%7lld", info->inode.i_size |
- ((__u64)info->inode.i_size_high << 32));
+ printf("%7" PRIu64, (uint64_t)(info->inode.i_size |
+ ((__u64)info->inode.i_size_high << 32)));
printf(" %s %s\n", datestr, info->name);
} /* end of long_disp */