dri: Fix the logger error message handling.

Since the loader changes, there has been a compiler warning that the
prototype didn't match.  It turns out that if a loader error message was
ever thrown, you'd segfault because of trying to use the warning level as
a format string.

Reviewed-by: Keith Packard <keithp@keithp.com>
Tested-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
This commit is contained in:
Eric Anholt
2014-01-23 11:03:53 -08:00
parent 7bd95ec437
commit 4a8da40fc0
3 changed files with 34 additions and 3 deletions

View File

@@ -1803,7 +1803,7 @@ dri3_create_display(Display * dpy)
pdp->base.destroyDisplay = dri3_destroy_display;
pdp->base.createScreen = dri3_create_screen;
loader_set_logger(ErrorMessageF);
loader_set_logger(dri_message);
i = 0;
pdp->loader_extensions[i++] = &imageLoaderExtension.base;