diff options
author | Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> | 2024-07-19 09:22:50 +0200 |
---|---|---|
committer | Eric Engestrom <eric@engestrom.ch> | 2024-07-23 21:58:47 +0200 |
commit | b71c17e7f456ff85970756c3d5a896c241a916eb (patch) | |
tree | 8dc0499634023d38aa0297da86bd9a3da48568e9 /src/glx | |
parent | 59c48fa36a2cc731bdcb72404f548bedf5fe54c2 (diff) |
egl,gbm,glx: fix log message spam
Based on the other similar logs we only want to log when extensions
is NULL.
Use this opportunity to indicate the source of the log and remove
the extra ')' at the end of each line.
Fixes: 50fc7cc290d ("glx: directly link to gallium")
Reviewed-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30257>
(cherry picked from commit 159a3edd80a988dec263708f851ed35eec881a78)
Diffstat (limited to 'src/glx')
-rw-r--r-- | src/glx/dri_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glx/dri_common.c b/src/glx/dri_common.c index a02f8492244..8ddad6f0b51 100644 --- a/src/glx/dri_common.c +++ b/src/glx/dri_common.c @@ -78,9 +78,9 @@ driOpenDriver(const char *driverName, bool driver_name_is_inferred) const __DRIextension **extensions = dri_loader_get_extensions(driverName); - if (driver_name_is_inferred) { + if (!extensions && driver_name_is_inferred) { glx_message(_LOADER_WARNING, - "MESA-LOADER: failed to open %s: driver not built!)\n", driverName); + "MESA-LOADER: glx: failed to open %s: driver not built!\n", driverName); } if (glhandle) |