ia64/xen-unstable

changeset 19826:7750bae3d042

blktap2: Fix some printf format specifiers (PRIu64).

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Jun 24 11:11:58 2009 +0100 (2009-06-24)
parents 81edfffb3aff
children 84932aa99aae
files tools/blktap2/drivers/block-ram.c tools/blktap2/drivers/block-vhd.c
line diff
     1.1 --- a/tools/blktap2/drivers/block-ram.c	Wed Jun 24 11:05:22 2009 +0100
     1.2 +++ b/tools/blktap2/drivers/block-ram.c	Wed Jun 24 11:11:58 2009 +0100
     1.3 @@ -101,7 +101,7 @@ static int get_image_info(int fd, td_dis
     1.4  	disksector_size = info->sector_size;
     1.5  	disksize        = info->size;
     1.6  	diskinfo        = info->info;
     1.7 -	DPRINTF("Image sector_size: \n\t[%lu]\n",
     1.8 +	DPRINTF("Image sector_size: \n\t[%"PRIu64"]\n",
     1.9  		info->sector_size);
    1.10  
    1.11  	return 0;
    1.12 @@ -126,7 +126,7 @@ int tdram_open (td_driver_t *driver, con
    1.13  			"sector_shift [%llu]\n",
    1.14  			(long long unsigned)(driver->info.size << SECTOR_SHIFT),
    1.15  			(long long unsigned)driver->info.size);
    1.16 -		DPRINTF("Image sector_size: \n\t[%lu]\n",
    1.17 +		DPRINTF("Image sector_size: \n\t[%"PRIu64"]\n",
    1.18  			driver->info.sector_size);
    1.19  
    1.20  		prv->fd = -1;
     2.1 --- a/tools/blktap2/drivers/block-vhd.c	Wed Jun 24 11:05:22 2009 +0100
     2.2 +++ b/tools/blktap2/drivers/block-vhd.c	Wed Jun 24 11:11:58 2009 +0100
     2.3 @@ -649,7 +649,8 @@ static int
     2.4  	driver->info.sector_size = VHD_SECTOR_SIZE;
     2.5  	driver->info.info        = 0;
     2.6  
     2.7 -        DBG(TLOG_INFO, "vhd_open: done (sz:%"PRIu64", sct:%lu, inf:%u)\n",
     2.8 +        DBG(TLOG_INFO, "vhd_open: done (sz:%"PRIu64", sct:%"PRIu64
     2.9 +            ", inf:%u)\n",
    2.10  	    driver->info.size, driver->info.sector_size, driver->info.info);
    2.11  
    2.12  	if (test_vhd_flag(flags, VHD_FLAG_OPEN_STRICT) &&