summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-07-18 16:51:04 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-07-18 16:51:04 -0700
commit689522257c211866f407636077511682ad792fd2 (patch)
tree50ff195cef2a6822253421f069900efafffd8923
parent74d6a326ba1292c721a2e6e70d29dc091fed3540 (diff)
OMAPPreInit: Fix error message for Unknown Chipset
Fixes build failure: In file included from omap_driver.c:34: omap_driver.c: In function 'OMAPPreInit': omap_driver.h:104:60: error: '%s' directive argument is null [-Werror=format-overflow=] 104 | do { xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "ERROR: " fmt "\n",\ | ^~~~~~~~~ omap_driver.c:545:17: note: in expansion of macro 'ERROR_MSG' 545 | ERROR_MSG("Unknown chipset: %s", pScrn->chipset); | ^~~~~~~~~ cc1: all warnings being treated as errors Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/omap_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/omap_driver.c b/src/omap_driver.c
index b9d90c5..780528f 100644
--- a/src/omap_driver.c
+++ b/src/omap_driver.c
@@ -542,7 +542,7 @@ OMAPPreInit(ScrnInfoPtr pScrn, int flags)
}
if (!pScrn->chipset) {
- ERROR_MSG("Unknown chipset: %s", pScrn->chipset);
+ ERROR_MSG("Unknown chipset: %d", pOMAP->chipset);
goto fail;
}