aboutsummaryrefslogtreecommitdiffstats
path: root/hw/ide.c
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-07 23:05:14 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-07 23:05:14 +0000
commit18c5f8eab1f7b742605caad3181286dc3207db4b (patch)
tree91fe7ac80e8a8f871a794bcdd107ca69f12a7d61 /hw/ide.c
parent24646c7ed8a94a2b39e03121f0079bb89e708ec7 (diff)
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
Diffstat (limited to 'hw/ide.c')
-rw-r--r--hw/ide.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/ide.c b/hw/ide.c
index 33e8b3932..0b672c863 100644
--- a/hw/ide.c
+++ b/hw/ide.c
@@ -844,7 +844,7 @@ static void ide_sector_read(IDEState *s)
ide_transfer_stop(s);
} else {
#if defined(DEBUG_IDE)
- printf("read sector=%Ld\n", sector_num);
+ printf("read sector=%" PRId64 "\n", sector_num);
#endif
if (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;
sector_num = ide_get_sector(s);
#if defined(DEBUG_IDE)
- printf("write sector=%Ld\n", sector_num);
+ printf("write sector=%" PRId64 "\n", sector_num);
#endif
n = s->nsector;
if (n > s->req_nb_sectors)