summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-12 17:42:06 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-15 11:17:38 -0800
commitf5f1239385c0ab54d1ae648c1dd73343bd8a0490 (patch)
treef656dc3f503f23567e89531c0352d47398d211cf
parent4edff7ddd4a13f54a071687ba9c539d92d88c331 (diff)
Fix 2 of 2 -Wformat warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/sis_dri.c2
-rw-r--r--src/sis_driver.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/sis_dri.c b/src/sis_dri.c
index 76fa8b7..89ca342 100644
--- a/src/sis_dri.c
+++ b/src/sis_dri.c
@@ -310,7 +310,7 @@ SISDRIScreenInit(ScreenPtr pScreen)
return FALSE;
}
- xf86DrvMsg(pScreen->myNum, X_INFO, "[drm] MMIO registers mapped to 0x%0x\n",
+ xf86DrvMsg(pScreen->myNum, X_INFO, "[drm] MMIO registers mapped to 0x%0llx\n",
pSISDRI->regs.handle);
/* AGP */
diff --git a/src/sis_driver.c b/src/sis_driver.c
index 851bb86..2643b26 100644
--- a/src/sis_driver.c
+++ b/src/sis_driver.c
@@ -6527,7 +6527,7 @@ SISPreInit(ScrnInfoPtr pScrn, int flags)
if(memreq > pSiS->maxxfbmem) {
SISErrorLog(pScrn,
- "Virtual screen too big for memory; %ldK needed, %ldK available\n",
+ "Virtual screen too big for memory; %ldK needed, %dK available\n",
memreq/1024, pSiS->maxxfbmem/1024);
goto my_error_1;
}