nv2a: Fix debug printf warnings

This commit is contained in:
Matt Borgerson 2022-01-09 02:51:50 -07:00 committed by mborgerson
parent 80fda910b1
commit e2fc067073
2 changed files with 3 additions and 2 deletions

View File

@ -5912,7 +5912,7 @@ static void pgraph_bind_textures(NV2AState *d)
NV_PGRAPH_TEXFMT0_BORDER_SOURCE);
uint32_t border_color = pg->regs[NV_PGRAPH_BORDERCOLOR0 + i*4];
unsigned int offset = pg->regs[NV_PGRAPH_TEXOFFSET0 + i*4];
hwaddr offset = pg->regs[NV_PGRAPH_TEXOFFSET0 + i*4];
bool palette_dma_select =
GET_MASK(palette, NV_PGRAPH_TEXPALETTE0_CONTEXT_DMA);

View File

@ -74,7 +74,8 @@ uint64_t pramdac_read(void *opaque, hwaddr addr, unsigned int size)
/* Surprisingly, QEMU doesn't handle unaligned access for you properly */
r >>= 32 - 8 * size - 8 * (addr & 3);
NV2A_DPRINTF("PRAMDAC: read %d [0x%" HWADDR_PRIx "] -> %llx\n", size, addr, r);
NV2A_DPRINTF("PRAMDAC: read %d [0x%" HWADDR_PRIx "] -> %" PRIx64 "\n", size,
addr, r);
return r;
}