st/mesa: improve error messages and fix security warning
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 30 Mar 2017 09:22:23 +0000 (11:22 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 30 Mar 2017 09:24:36 +0000 (11:24 +0200)
commit257ee3f7ef21dfbd65a3dac423a986b926ca0d18
treee325fd0c75ccffd388fa33189012b172a4706916
parente4dc005bcebfa5723aeba3e0cffce986bdd4d52d
st/mesa: improve error messages and fix security warning

Debian, Ubuntu set default build flag: -Werror=format-security

  CC       state_tracker/st_cb_texturebarrier.lo
state_tracker/st_cb_eglimage.c: In function ‘st_egl_image_get_surface’:
state_tracker/st_cb_eglimage.c:64:7: error: format not a string literal and no format arguments [-Werror=format-security]
       _mesa_error(ctx, GL_INVALID_VALUE, error);
       ^~~~~~~~~~~
state_tracker/st_cb_eglimage.c:71:7: error: format not a string literal and no format arguments [-Werror=format-security]
       _mesa_error(ctx, GL_INVALID_OPERATION, error);
       ^~~~~~~~~~~

Reported-by: Krzysztof Kolasa <kkolasa@winsoft.pl>
Fixes: 83e9de25f325 ("st/mesa: EGLImageTarget* error handling")
src/mesa/state_tracker/st_cb_eglimage.c