From 55a764ce52c206d2ee8b298e9e97c06083ac82ab Mon Sep 17 00:00:00 2001 From: PatrickvL Date: Fri, 16 Feb 2018 10:49:57 +0100 Subject: [PATCH] NV2A : Log NV2A messages in similarly to other logging --- src/devices/video/EmuNV2A.cpp | 2 +- src/devices/video/nv2a.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/video/EmuNV2A.cpp b/src/devices/video/EmuNV2A.cpp index e20e48f80..ebf6193fc 100644 --- a/src/devices/video/EmuNV2A.cpp +++ b/src/devices/video/EmuNV2A.cpp @@ -180,7 +180,7 @@ static void *nv_dma_map(NV2AState *d, xbaddr dma_obj_address, xbaddr *len) DMAObject dma = nv_dma_load(d, dma_obj_address); /* TODO: Handle targets and classes properly */ - printf("dma_map %x, %x, %x %x\n", + NV2A_DPRINTF("dma_map %x, %x, %x %x\n", dma.dma_class, dma.dma_target, dma.address, dma.limit); dma.address &= 0x07FFFFFF; diff --git a/src/devices/video/nv2a.h b/src/devices/video/nv2a.h index f7996b5a5..2e6389a32 100644 --- a/src/devices/video/nv2a.h +++ b/src/devices/video/nv2a.h @@ -61,7 +61,7 @@ typedef xbaddr hwaddr; // Compatibility; Cxbx uses xbaddr, xqemu and OpenXbox use hwaddr typedef uint32_t value_t; // Compatibility; Cxbx values are uint32_t (xqemu and OpenXbox use uint64_t) -#define NV2A_DPRINTF printf // Compatibility; TODO : Replace this by something equivalent +#define NV2A_DPRINTF(...) printf("[0x????] NV2A: " ## __VA_ARGS__) // Compatibility; TODO : Replace this by something equivalent #define NV2A_GL_DPRINTF EmuWarning // Compatibility; TODO : Replace this by something equivalent #define VSH_TOKEN_SIZE 4 // Compatibility; TODO : Move this to nv2a_vsh.h #define MAX(a,b) ((a)>(b) ? (a) : (b)) // Compatibility