egl: drop confusing mincore() error message
authorEric Engestrom <eric.engestrom@intel.com>
Fri, 27 Dec 2019 20:59:26 +0000 (20:59 +0000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 22 Jan 2020 17:55:26 +0000 (17:55 +0000)
A user came to me asking how to fix this error, but it's entirely
expected that `get_wl_surface_proxy()` on recent enough wayland
compositors will always print it.
Let's just remove the message altogether, it is basically never useful.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3219>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3219>

src/egl/main/eglglobals.c

index 5760edc3d3c11719d9a14309321044884b775c74..8a8c03c924fd0f036f52901ce2ceee5fbdc8257c 100644 (file)
@@ -38,7 +38,6 @@
 #include "egldevice.h"
 #include "egldisplay.h"
 #include "egldriver.h"
-#include "egllog.h"
 
 #include "util/macros.h"
 
@@ -173,7 +172,6 @@ _eglPointerIsDereferencable(void *p)
    addr &= ~(page_size - 1);
 
    if (mincore((void *) addr, page_size, &valid) < 0) {
-      _eglLog(_EGL_DEBUG, "mincore failed: %m");
       return EGL_FALSE;
    }