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

Deucher, Alexander Alexander.Deucher at amd.com
Thu Feb 15 17:07:36 UTC 2018


Series is:

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

________________________________
From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> on behalf of Michel Dänzer <michel at daenzer.net>
Sent: Thursday, February 15, 2018 11:50:24 AM
To: amd-gfx at lists.freedesktop.org
Subject: [PATCH xf86-video-ati 2/2] Simplify depth 30 "kernel too old" error message

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

_______________________________________________
amd-gfx mailing list
amd-gfx at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20180215/a6750a97/attachment-0001.html>


More information about the amd-gfx mailing list