aboutsummaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
Diffstat (limited to 'hw')
-rw-r--r--hw/goldfish_audio.c2
-rw-r--r--hw/goldfish_mmc.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/hw/goldfish_audio.c b/hw/goldfish_audio.c
index 75f65bb..37e4c09 100644
--- a/hw/goldfish_audio.c
+++ b/hw/goldfish_audio.c
@@ -439,7 +439,7 @@ static void goldfish_audio_write(void *opaque, target_phys_addr_t offset, uint32
case AUDIO_SET_READ_BUFFER:
/* save pointer to the read buffer */
goldfish_audio_buff_set_address( s->in_buff, val );
- D( "%s: AUDIO_SET_READ_BUFFER %p", __FUNCTION__, (void*)val );
+ D( "%s: AUDIO_SET_READ_BUFFER %08x", __FUNCTION__, val );
break;
case AUDIO_START_READ:
diff --git a/hw/goldfish_mmc.c b/hw/goldfish_mmc.c
index 3824db9..3157bb3 100644
--- a/hw/goldfish_mmc.c
+++ b/hw/goldfish_mmc.c
@@ -251,7 +251,7 @@ static void goldfish_mmc_do_command(struct goldfish_mmc_state *s, uint32_t cmd,
m = (uint32_t)(capacity / (512*1024)) - 1;
// m must fit into 22 bits
if (m & 0xFFC00000) {
- fprintf(stderr, "SD card too big (%lld bytes). Maximum SDHC card size is 128 gigabytes.\n", capacity);
+ fprintf(stderr, "SD card too big (%lld bytes). Maximum SDHC card size is 128 gigabytes.\n", (long long)capacity);
abort();
}
@@ -277,7 +277,7 @@ static void goldfish_mmc_do_command(struct goldfish_mmc_state *s, uint32_t cmd,
exponent = 0;
capacity = sector_count * 512;
if (capacity > 2147483648U) {
- fprintf(stderr, "SD card too big (%lld bytes). Maximum SD card size is 2 gigabytes.\n", capacity);
+ fprintf(stderr, "SD card too big (%lld bytes). Maximum SD card size is 2 gigabytes.\n", (long long)capacity);
abort();
}
capacity >>= 10; // convert to Kbytes