dri: Fix the logger error message handling.
authorEric Anholt <eric@anholt.net>
Thu, 23 Jan 2014 19:03:53 +0000 (11:03 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 27 Jan 2014 17:37:29 +0000 (09:37 -0800)
commit4a8da40fc089d465b72ecee89e24cd92e6714669
tree983c52083b7803ff60ccb70b7377c0e5c154fac1
parent7bd95ec437a5b1052fa17780a9d66677ec1fdc35
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>
src/glx/dri3_glx.c
src/glx/dri_common.c
src/glx/dri_common.h