Commit 18c5f8eab1f7b742605caad3181286dc3207db4b

Authored by balrog
1 parent 24646c7e

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
Showing 1 changed file with 2 additions and 2 deletions
hw/ide.c
@@ -844,7 +844,7 @@ static void ide_sector_read(IDEState *s) @@ -844,7 +844,7 @@ static void ide_sector_read(IDEState *s)
844 ide_transfer_stop(s); 844 ide_transfer_stop(s);
845 } else { 845 } else {
846 #if defined(DEBUG_IDE) 846 #if defined(DEBUG_IDE)
847 - printf("read sector=%Ld\n", sector_num); 847 + printf("read sector=%" PRId64 "\n", sector_num);
848 #endif 848 #endif
849 if (n > s->req_nb_sectors) 849 if (n > s->req_nb_sectors)
850 n = s->req_nb_sectors; 850 n = s->req_nb_sectors;
@@ -987,7 +987,7 @@ static void ide_sector_write(IDEState *s) @@ -987,7 +987,7 @@ static void ide_sector_write(IDEState *s)
987 s->status = READY_STAT | SEEK_STAT; 987 s->status = READY_STAT | SEEK_STAT;
988 sector_num = ide_get_sector(s); 988 sector_num = ide_get_sector(s);
989 #if defined(DEBUG_IDE) 989 #if defined(DEBUG_IDE)
990 - printf("write sector=%Ld\n", sector_num); 990 + printf("write sector=%" PRId64 "\n", sector_num);
991 #endif 991 #endif
992 n = s->nsector; 992 n = s->nsector;
993 if (n > s->req_nb_sectors) 993 if (n > s->req_nb_sectors)