diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2022-08-09 09:27:44 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2022-08-10 11:15:01 -0700 |
commit | e05dff0abf4f97dceaeeb29c22f337d353d879ed (patch) | |
tree | acfe1db41308f38b3155158e8bd55bfee82428cd | |
parent | 0a2d72175f1a606be37360d755868e387afd450a (diff) | |
download | qtwayland-e05dff0abf4f97dceaeeb29c22f337d353d879ed.tar.gz |
QWaylandGLContext: print the 0x prefix in error code
So it's not ambiguous that this is hex, in messages like:
"WARNING: QWaylandGLContext::makeCurrent: eglError: 3003"
Pick-to: 6.4
Change-Id: Ie4bb662dcb274440ab8bfffd1709ba0415c3d790
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
-rw-r--r-- | src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp b/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp index 376ba5a7..0b64db5c 100644 --- a/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp +++ b/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp @@ -294,7 +294,7 @@ bool QWaylandGLContext::makeCurrent(QPlatformSurface *surface) if (!m_currentWindow->needToUpdateContentFBO() && (eglSurface != EGL_NO_SURFACE)) { if (!eglMakeCurrent(eglDisplay(), eglSurface, eglSurface, eglContext())) { - qWarning("QWaylandGLContext::makeCurrent: eglError: %x, this: %p \n", eglGetError(), this); + qWarning("QWaylandGLContext::makeCurrent: eglError: %#x, this: %p \n", eglGetError(), this); return false; } return true; @@ -311,7 +311,7 @@ bool QWaylandGLContext::makeCurrent(QPlatformSurface *surface) } if (!eglMakeCurrent(eglDisplay(), eglSurface, eglSurface, eglContext())) { - qWarning("QWaylandGLContext::makeCurrent: eglError: %x, this: %p \n", eglGetError(), this); + qWarning("QWaylandGLContext::makeCurrent: eglError: %#x, this: %p \n", eglGetError(), this); m_currentWindow->setCanResize(true); return false; } |