diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-09 11:21:07 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-15 14:25:24 -0800 |
commit | e69782d704ccd7dc702ede378be00fa6999d5b0c (patch) | |
tree | b8474f9868e84eb1e5167f46b8f82d613e5dff63 | |
parent | c6e0bbcdb1e24166969b350bf7b427d7a916916e (diff) |
TDFXDRIScreenInit: fix -Wformat warning
v2: Add cast to work with both Linux (unsigned int) and
non-Linux (unsigned long) typedefs of drm_handle_t
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/tdfx_dri.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tdfx_dri.c b/src/tdfx_dri.c index 483ca20..6d86532 100644 --- a/src/tdfx_dri.c +++ b/src/tdfx_dri.c @@ -246,8 +246,8 @@ Bool TDFXDRIScreenInit(ScreenPtr pScreen) xf86DrvMsg(pScreen->myNum, X_ERROR, "drmAddMap failed, disabling DRI.\n"); return FALSE; } - xf86DrvMsg(pScreen->myNum, X_INFO, "[drm] Registers = 0x%08x\n", - pTDFXDRI->regs); + xf86DrvMsg(pScreen->myNum, X_INFO, "[drm] Registers = 0x%08lx\n", + (unsigned long) pTDFXDRI->regs); xf86DrvMsg(pScrn->scrnIndex, X_INFO, "visual configs initialized\n" ); |