diff options
author | George Sapountzis <[email protected]> | 2008-06-13 15:48:06 +0300 |
---|---|---|
committer | George Sapountzis <[email protected]> | 2008-06-13 15:48:06 +0300 |
commit | 4297413656dd932a6bc2b56e16a2633ae8e712cd (patch) | |
tree | d55b8185a558c5b8af662ef7b44b1548b6dc4957 /src | |
parent | 95b34baa8f981b08e21a36f9163d98a426559839 (diff) |
glx: use ErrorMessageF
Diffstat (limited to 'src')
-rw-r--r-- | src/glx/x11/dri_glx.c | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/src/glx/x11/dri_glx.c b/src/glx/x11/dri_glx.c index 1cb3204d4c7..d2a06619493 100644 --- a/src/glx/x11/dri_glx.c +++ b/src/glx/x11/dri_glx.c @@ -302,7 +302,7 @@ CallCreateNewScreen(Display *dpy, int scrn, __GLXscreenConfigs *psc, framebuffer.dev_priv = NULL; if (!XF86DRIOpenConnection(dpy, scrn, &hSAREA, &BusID)) { - fprintf(stderr, "libGL error: XF86DRIOpenConnection failed\n"); + ErrorMessageF("XF86DRIOpenConnection failed\n"); goto handle_error; } @@ -311,13 +311,12 @@ CallCreateNewScreen(Display *dpy, int scrn, __GLXscreenConfigs *psc, Xfree(BusID); /* No longer needed */ if (fd < 0) { - fprintf(stderr, "libGL error: drmOpenOnce failed (%s)\n", - strerror(-fd)); + ErrorMessageF("drmOpenOnce failed (%s)\n", strerror(-fd)); goto handle_error; } if (drmGetMagic(fd, &magic)) { - fprintf(stderr, "libGL error: drmGetMagic failed\n"); + ErrorMessageF("drmGetMagic failed\n"); goto handle_error; } @@ -335,7 +334,7 @@ CallCreateNewScreen(Display *dpy, int scrn, __GLXscreenConfigs *psc, } if (newlyopened && !XF86DRIAuthConnection(dpy, scrn, magic)) { - fprintf(stderr, "libGL error: XF86DRIAuthConnection failed\n"); + ErrorMessageF("XF86DRIAuthConnection failed\n"); goto handle_error; } @@ -347,7 +346,7 @@ CallCreateNewScreen(Display *dpy, int scrn, __GLXscreenConfigs *psc, &ddx_version.minor, &ddx_version.patch, &driverName)) { - fprintf(stderr, "libGL error: XF86DRIGetClientDriverName failed\n"); + ErrorMessageF("XF86DRIGetClientDriverName failed\n"); goto handle_error; } @@ -362,7 +361,7 @@ CallCreateNewScreen(Display *dpy, int scrn, __GLXscreenConfigs *psc, if (!XF86DRIGetDeviceInfo(dpy, scrn, &hFB, &junk, &framebuffer.size, &framebuffer.stride, &framebuffer.dev_priv_size, &framebuffer.dev_priv)) { - fprintf(stderr, "libGL error: XF86DRIGetDeviceInfo failed"); + ErrorMessageF("XF86DRIGetDeviceInfo failed"); goto handle_error; } @@ -373,8 +372,7 @@ CallCreateNewScreen(Display *dpy, int scrn, __GLXscreenConfigs *psc, status = drmMap(fd, hFB, framebuffer.size, (drmAddressPtr)&framebuffer.base); if (status != 0) { - fprintf(stderr, "libGL error: drmMap of framebuffer failed (%s)", - strerror(-status)); + ErrorMessageF("drmMap of framebuffer failed (%s)", strerror(-status)); goto handle_error; } @@ -383,8 +381,7 @@ CallCreateNewScreen(Display *dpy, int scrn, __GLXscreenConfigs *psc, */ status = drmMap(fd, hSAREA, SAREA_MAX, &pSAREA); if (status != 0) { - fprintf(stderr, "libGL error: drmMap of SAREA failed (%s)", - strerror(-status)); + ErrorMessageF("drmMap of SAREA failed (%s)", strerror(-status)); goto handle_error; } @@ -400,7 +397,7 @@ CallCreateNewScreen(Display *dpy, int scrn, __GLXscreenConfigs *psc, psc); if (psp == NULL) { - fprintf(stderr, "libGL error: Calling driver entry point failed"); + ErrorMessageF("Calling driver entry point failed"); goto handle_error; } @@ -424,7 +421,7 @@ CallCreateNewScreen(Display *dpy, int scrn, __GLXscreenConfigs *psc, XF86DRICloseConnection(dpy, scrn); - fprintf(stderr, "libGL error: reverting to (slow) indirect rendering\n"); + ErrorMessageF("reverting to indirect rendering\n"); return NULL; } |