Commit 29bfb117251c96034bb9f9144bc61799137690c3
1 parent
08f396d7
Add casts for 64-bit hosts.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2218 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
2 deletions
hw/integratorcp.c
| ... | ... | @@ -325,7 +325,7 @@ static uint32_t icp_pic_read(void *opaque, target_phys_addr_t offset) |
| 325 | 325 | case 5: /* INT_SOFTCLR */ |
| 326 | 326 | case 11: /* FRQ_ENABLECLR */ |
| 327 | 327 | default: |
| 328 | - printf ("icp_pic_read: Bad register offset 0x%x\n", offset); | |
| 328 | + printf ("icp_pic_read: Bad register offset 0x%x\n", (int)offset); | |
| 329 | 329 | return 0; |
| 330 | 330 | } |
| 331 | 331 | } |
| ... | ... | @@ -362,7 +362,7 @@ static void icp_pic_write(void *opaque, target_phys_addr_t offset, |
| 362 | 362 | case 8: /* FRQ_STATUS */ |
| 363 | 363 | case 9: /* FRQ_RAWSTAT */ |
| 364 | 364 | default: |
| 365 | - printf ("icp_pic_write: Bad register offset 0x%x\n", offset); | |
| 365 | + printf ("icp_pic_write: Bad register offset 0x%x\n", (int)offset); | |
| 366 | 366 | return; |
| 367 | 367 | } |
| 368 | 368 | icp_pic_update(s); | ... | ... |