[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 8/8] vvfat: More build fixes with DEBUG
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PATCH 8/8] vvfat: More build fixes with DEBUG |
Date: |
Thu, 20 May 2010 15:10:43 +0200 |
Casting a pointer to an int doesn't work on 64 bit platforms. Use the %p printf
conversion specifier instead.
Signed-off-by: Kevin Wolf <address@hidden>
---
block/vvfat.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/block/vvfat.c b/block/vvfat.c
index 13c31fa..6d61c2e 100644
--- a/block/vvfat.c
+++ b/block/vvfat.c
@@ -1244,7 +1244,7 @@ static void print_direntry(const direntry_t* direntry)
int j = 0;
char buffer[1024];
- fprintf(stderr, "direntry 0x%x: ", (int)direntry);
+ fprintf(stderr, "direntry %p: ", direntry);
if(!direntry)
return;
if(is_long_name(direntry)) {
@@ -1273,7 +1273,11 @@ static void print_direntry(const direntry_t* direntry)
static void print_mapping(const mapping_t* mapping)
{
- fprintf(stderr, "mapping (0x%x): begin, end = %d, %d, dir_index = %d,
first_mapping_index = %d, name = %s, mode = 0x%x, " , (int)mapping,
mapping->begin, mapping->end, mapping->dir_index, mapping->first_mapping_index,
mapping->path, mapping->mode);
+ fprintf(stderr, "mapping (%p): begin, end = %d, %d, dir_index = %d, "
+ "first_mapping_index = %d, name = %s, mode = 0x%x, " ,
+ mapping, mapping->begin, mapping->end, mapping->dir_index,
+ mapping->first_mapping_index, mapping->path, mapping->mode);
+
if (mapping->mode & MODE_DIRECTORY)
fprintf(stderr, "parent_mapping_index = %d, first_dir_index = %d\n",
mapping->info.dir.parent_mapping_index, mapping->info.dir.first_dir_index);
else
--
1.6.6.1
- [Qemu-devel] [PULL 0/8] Block patches, Kevin Wolf, 2010/05/20
- [Qemu-devel] [PATCH 2/8] virtio-blk: Avoid zeroing every request structure, Kevin Wolf, 2010/05/20
- [Qemu-devel] [PATCH 4/8] block: fix sector comparism in multiwrite_req_compare, Kevin Wolf, 2010/05/20
- [Qemu-devel] [PATCH 3/8] virtio-blk: fix barrier support, Kevin Wolf, 2010/05/20
- [Qemu-devel] [PATCH 1/8] block: fix aio_flush segfaults for read-only protocols (e.g. curl), Kevin Wolf, 2010/05/20
- [Qemu-devel] [PATCH 5/8] block: Make find_image_format() return 'raw' BlockDriver for SG_IO devices, Kevin Wolf, 2010/05/20
- [Qemu-devel] [PATCH 6/8] block: Add SG_IO device check in refresh_total_sectors(), Kevin Wolf, 2010/05/20
- [Qemu-devel] [PATCH 8/8] vvfat: More build fixes with DEBUG,
Kevin Wolf <=
- [Qemu-devel] [PATCH 7/8] vvfat: Fix compilation with DEBUG defined, Kevin Wolf, 2010/05/20