diff options
author | Samuel Thibault | 2007-12-03 14:17:23 +0100 |
---|---|---|
committer | Karel Zak | 2007-12-03 15:27:52 +0100 |
commit | 7711bc173314bc021748822be88748587ae6b246 (patch) | |
tree | 2e55c89e78bac35b7a942cce2bc8d72bdec7ddd1 /mount/lomount.c | |
parent | fdisk: non-linux support (use standard uintxy_t instead __uxy) (diff) | |
download | kernel-qcow2-util-linux-7711bc173314bc021748822be88748587ae6b246.tar.gz kernel-qcow2-util-linux-7711bc173314bc021748822be88748587ae6b246.tar.xz kernel-qcow2-util-linux-7711bc173314bc021748822be88748587ae6b246.zip |
losetup: use standard uintxy_t types (struct loop_info64)
The kernel loop_info64 definition uses __u{8,32,64} types,
but userspace uses unsigned {long long,int,char} types.
This patch turns into exactly defined standard uint{8,32,64}_t types.
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount/lomount.c')
-rw-r--r-- | mount/lomount.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mount/lomount.c b/mount/lomount.c index d91a99f34..56d7234d8 100644 --- a/mount/lomount.c +++ b/mount/lomount.c @@ -17,6 +17,7 @@ #include <sys/stat.h> #include <sys/mman.h> #include <sys/sysmacros.h> +#include <inttypes.h> #include "loop.h" #include "lomount.h" @@ -81,15 +82,15 @@ show_loop(char *device) { loopinfo64.lo_file_name[LO_NAME_SIZE-1] = 0; loopinfo64.lo_crypt_name[LO_NAME_SIZE-1] = 0; - printf("%s: [%04llx]:%llu (%s)", + printf("%s: [%04" PRIx64 "]:%" PRIu64 " (%s)", device, loopinfo64.lo_device, loopinfo64.lo_inode, loopinfo64.lo_file_name); if (loopinfo64.lo_offset) - printf(_(", offset %lld"), loopinfo64.lo_offset); + printf(_(", offset %" PRIu64 ), loopinfo64.lo_offset); if (loopinfo64.lo_sizelimit) - printf(_(", sizelimit %lld"), loopinfo64.lo_sizelimit); + printf(_(", sizelimit %" PRIu64 ), loopinfo64.lo_sizelimit); if (loopinfo64.lo_encrypt_type || loopinfo64.lo_crypt_name[0]) { @@ -97,7 +98,7 @@ show_loop(char *device) { if (*e == 0 && loopinfo64.lo_encrypt_type == 1) e = "XOR"; - printf(_(", encryption %s (type %d)"), + printf(_(", encryption %s (type %" PRIu32 ")"), e, loopinfo64.lo_encrypt_type); } printf("\n"); |