[PATCH xf86-video-ati 2/2] Simplify depth 30 "kernel too old" error message

Michel Dänzer michel at daenzer.net
Thu Feb 15 16:50:24 UTC 2018


From: Michel Dänzer <michel.daenzer at amd.com>

We know it's depth 30, need to have xf86DrvMsg fill it in.

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 src/radeon_kms.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/radeon_kms.c b/src/radeon_kms.c
index b268f7ea7..85390e306 100644
--- a/src/radeon_kms.c
+++ b/src/radeon_kms.c
@@ -1778,8 +1778,7 @@ Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int flags)
     /* Depth 30 only supported since Linux 3.16 / kms driver minor version 39 */
     if (pScrn->depth == 30 && info->dri2.pKernelDRMVersion->version_minor < 39) {
 	xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
-		   "Given depth (%d) is not supported. Kernel too old. Needs Linux 3.16+\n",
-		   pScrn->depth);
+		   "Depth 30 is not supported. Kernel too old. Needs Linux 3.16+\n");
 	return FALSE;
     }
 
-- 
2.16.1



More information about the amd-gfx mailing list