From abb226614775d870bee474ef084850957ddc8d3f Mon Sep 17 00:00:00 2001 From: Erik Larsson Date: Thu, 11 Feb 2016 13:52:59 +0100 Subject: [PATCH] mft.c: Fix compiler warning about mismatching format/argument type. The expression is promoted to 'int' implicitly so we explicitly cast it to 'u8'. --- libntfs-3g/mft.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libntfs-3g/mft.c b/libntfs-3g/mft.c index b9285e2f..304c5baa 100644 --- a/libntfs-3g/mft.c +++ b/libntfs-3g/mft.c @@ -554,7 +554,7 @@ static int ntfs_mft_bitmap_find_free_rec(ntfs_volume *vol, ntfs_inode *base_ni) "data_pos 0x%llx, bit 0x%llx, " "*byte 0x%hhx, b %u.\n", size, (long long)data_pos, (long long)bit, - byte ? *byte : -1, b); + (u8) (byte ? *byte : -1), b); for (; bit < size && data_pos + bit < pass_end; bit &= ~7ull, bit += 8) { /* @@ -581,7 +581,7 @@ static int ntfs_mft_bitmap_find_free_rec(ntfs_volume *vol, ntfs_inode *base_ni) "data_pos 0x%llx, bit 0x%llx, " "*byte 0x%hhx, b %u.\n", size, (long long)data_pos, (long long)bit, - byte ? *byte : -1, b); + (u8) (byte ? *byte : -1), b); data_pos += size; /* * If the end of the pass has not been reached yet,