diff options
author | Brian Paul <[email protected]> | 2002-10-30 20:24:45 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-10-30 20:24:45 +0000 |
commit | 2ad5921cf3c9737796c3485bd5b9f738fb4a3cb9 (patch) | |
tree | a513b0edc8c67b122a78ad3d9c2de7519b6e4a57 /src/mesa/drivers/x11/fakeglx.c | |
parent | e1e867c3b250506f7497dd8ecd1e3960d4d76354 (diff) |
use wrappers from imports.h rather than stdio, stdlib, etc functions.
Diffstat (limited to 'src/mesa/drivers/x11/fakeglx.c')
-rw-r--r-- | src/mesa/drivers/x11/fakeglx.c | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c index d4ad6975b5a..489ba77c6bb 100644 --- a/src/mesa/drivers/x11/fakeglx.c +++ b/src/mesa/drivers/x11/fakeglx.c @@ -1,4 +1,4 @@ -/* $Id: fakeglx.c,v 1.72 2002/10/29 23:53:22 brianp Exp $ */ +/* $Id: fakeglx.c,v 1.73 2002/10/30 20:24:45 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -588,12 +588,8 @@ static XVisualInfo *get_env_visual(Display *dpy, int scr, const char *varname) } } - { - char s[1000]; - sprintf(s, "Mesa: GLX unable to find visual class=%s, depth=%d.\n", - type, depth ); - _mesa_warning(NULL, s); - } + _mesa_warning(NULL, "GLX unable to find visual class=%s, depth=%d.", + type, depth); return NULL; } @@ -1081,7 +1077,8 @@ static XMesaVisual choose_visual( Display *dpy, int screen, const int *list ) default: /* undefined attribute */ - printf("unexpected attrib 0x%x\n", *parselist); + _mesa_warning(NULL, "unexpected attrib 0x%x in choose_visual()", + *parselist); return NULL; } } @@ -1768,8 +1765,8 @@ static const char * Fake_glXQueryServerString( Display *dpy, int screen, int name ) { static char version[1000]; - sprintf(version, "%d.%d %s", SERVER_MAJOR_VERSION, SERVER_MINOR_VERSION, - MESA_GLX_VERSION); + _mesa_sprintf(version, "%d.%d %s", + SERVER_MAJOR_VERSION, SERVER_MINOR_VERSION, MESA_GLX_VERSION); (void) dpy; (void) screen; @@ -1793,8 +1790,8 @@ static const char * Fake_glXGetClientString( Display *dpy, int name ) { static char version[1000]; - sprintf(version, "%d.%d %s", CLIENT_MAJOR_VERSION, CLIENT_MINOR_VERSION, - MESA_GLX_VERSION); + _mesa_sprintf(version, "%d.%d %s", CLIENT_MAJOR_VERSION, + CLIENT_MINOR_VERSION, MESA_GLX_VERSION); (void) dpy; |