diff options
author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2007-12-14 16:12:24 +0100 |
---|---|---|
committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2007-12-14 16:12:24 +0100 |
commit | 196100492d7049e87e0c4aa51f435bc5d4efce42 (patch) | |
tree | e90ce4f8ffde1cafe1b04da15d1c523bbf24bafc | |
parent | 3d14ba70a6e3164556a5f984bd7a183df8a1cd00 (diff) | |
download | e2tools-196100492d7049e87e0c4aa51f435bc5d4efce42.tar.gz e2tools-196100492d7049e87e0c4aa51f435bc5d4efce42.tar.xz e2tools-196100492d7049e87e0c4aa51f435bc5d4efce42.zip |
Get rid of 64bit formatstring warning
-rw-r--r-- | ls.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 */ |