ia64/xen-unstable

changeset 15913:0349e4eedd25

qemu-dm: fix block-raw io debug print
Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
author kfraser@localhost.localdomain
date Fri Sep 14 16:08:39 2007 +0100 (2007-09-14)
parents 9a7cbde124a5
children b3f681d71265
files tools/ioemu/block-raw.c
line diff
     1.1 --- a/tools/ioemu/block-raw.c	Fri Sep 14 16:07:18 2007 +0100
     1.2 +++ b/tools/ioemu/block-raw.c	Fri Sep 14 16:08:39 2007 +0100
     1.3 @@ -150,7 +150,7 @@ static int raw_pread(BlockDriverState *b
     1.4      if (lseek(s->fd, offset, SEEK_SET) == (off_t)-1) {
     1.5          ++(s->lseek_err_cnt);
     1.6          if(s->lseek_err_cnt <= 10) {
     1.7 -                DEBUG_BLOCK_PRINT("raw_pread(%d:%s, %ld, %p, %d) [%ld] lseek failed : %d = %s\n", 
     1.8 +                DEBUG_BLOCK_PRINT("raw_pread(%d:%s, %" PRId64 ", %p, %d) [%" PRId64 "] lseek failed : %d = %s\n", 
     1.9                          s->fd, 
    1.10                          bs->filename, 
    1.11                          offset, 
    1.12 @@ -166,7 +166,7 @@ static int raw_pread(BlockDriverState *b
    1.13      if (ret == count) 
    1.14          goto label__raw_read__success;
    1.15      
    1.16 -    DEBUG_BLOCK_PRINT("raw_read(%d:%s, %ld, %p, %d) [%ld] read failed %d : %d = %s\n", 
    1.17 +    DEBUG_BLOCK_PRINT("raw_read(%d:%s, %" PRId64 ", %p, %d) [%" PRId64 "] read failed %d : %d = %s\n", 
    1.18          s->fd, 
    1.19          bs->filename, 
    1.20          offset, 
    1.21 @@ -185,7 +185,7 @@ static int raw_pread(BlockDriverState *b
    1.22          if (ret == count)
    1.23              goto label__raw_read__success;
    1.24          
    1.25 -        DEBUG_BLOCK_PRINT("raw_read(%d:%s, %ld, %p, %d) [%ld] retry read failed %d : %d = %s\n", 
    1.26 +        DEBUG_BLOCK_PRINT("raw_read(%d:%s, %" PRId64 ", %p, %d) [%" PRId64 "] retry read failed %d : %d = %s\n", 
    1.27              s->fd, 
    1.28              bs->filename, 
    1.29              offset, 
    1.30 @@ -215,7 +215,7 @@ static int raw_pwrite(BlockDriverState *
    1.31      if (lseek(s->fd, offset, SEEK_SET) == (off_t)-1) {
    1.32          ++(s->lseek_err_cnt);
    1.33          if(s->lseek_err_cnt) {
    1.34 -                DEBUG_BLOCK_PRINT("raw_write(%d:%s, %ld, %p, %d) [%ld] lseek failed : %d = %s\n", 
    1.35 +                DEBUG_BLOCK_PRINT("raw_write(%d:%s, %" PRId64 ", %p, %d) [%" PRId64 "] lseek failed : %d = %s\n", 
    1.36                          s->fd, 
    1.37                          bs->filename, 
    1.38                          offset, 
    1.39 @@ -231,7 +231,7 @@ static int raw_pwrite(BlockDriverState *
    1.40      if (ret == count) 
    1.41          goto label__raw_write__success;
    1.42      
    1.43 -    DEBUG_BLOCK_PRINT("raw_write(%d:%s, %ld, %p, %d) [%ld] write failed %d : %d = %s\n", 
    1.44 +    DEBUG_BLOCK_PRINT("raw_write(%d:%s, %" PRId64 ", %p, %d) [%" PRId64 "] write failed %d : %d = %s\n", 
    1.45          s->fd, 
    1.46          bs->filename, 
    1.47          offset,