mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-15 11:51:21 +00:00
Use the right format string to printf sector num with DEBUG_IDE.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5647 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
24646c7ed8
commit
18c5f8eab1
4
hw/ide.c
4
hw/ide.c
@ -844,7 +844,7 @@ static void ide_sector_read(IDEState *s)
|
|||||||
ide_transfer_stop(s);
|
ide_transfer_stop(s);
|
||||||
} else {
|
} else {
|
||||||
#if defined(DEBUG_IDE)
|
#if defined(DEBUG_IDE)
|
||||||
printf("read sector=%Ld\n", sector_num);
|
printf("read sector=%" PRId64 "\n", sector_num);
|
||||||
#endif
|
#endif
|
||||||
if (n > s->req_nb_sectors)
|
if (n > s->req_nb_sectors)
|
||||||
n = s->req_nb_sectors;
|
n = s->req_nb_sectors;
|
||||||
@ -987,7 +987,7 @@ static void ide_sector_write(IDEState *s)
|
|||||||
s->status = READY_STAT | SEEK_STAT;
|
s->status = READY_STAT | SEEK_STAT;
|
||||||
sector_num = ide_get_sector(s);
|
sector_num = ide_get_sector(s);
|
||||||
#if defined(DEBUG_IDE)
|
#if defined(DEBUG_IDE)
|
||||||
printf("write sector=%Ld\n", sector_num);
|
printf("write sector=%" PRId64 "\n", sector_num);
|
||||||
#endif
|
#endif
|
||||||
n = s->nsector;
|
n = s->nsector;
|
||||||
if (n > s->req_nb_sectors)
|
if (n > s->req_nb_sectors)
|
||||||
|
Loading…
Reference in New Issue
Block a user