drm-shim: Include the hex of the driver ioctl for unimplemented ioctls.

Some headers #define them in hex, so make it easier to look up which one
isn't implemented.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37323>
This commit is contained in:
Emma Anholt 2025-09-10 10:48:02 -07:00 committed by Marge Bot
parent 1375ba209d
commit 37ae0e4255

View file

@ -318,8 +318,8 @@ drm_shim_ioctl(int fd, unsigned long request, void *arg)
if (nr >= DRM_COMMAND_BASE && nr < DRM_COMMAND_END) {
fprintf(stderr,
"DRM_SHIM: unhandled driver DRM ioctl %d (0x%08lx)\n",
nr - DRM_COMMAND_BASE, request);
"DRM_SHIM: unhandled driver DRM ioctl %d (0x%x) (0x%08lx)\n",
nr - DRM_COMMAND_BASE, nr - DRM_COMMAND_BASE, request);
} else {
fprintf(stderr,
"DRM_SHIM: unhandled core DRM ioctl 0x%X (0x%08lx)\n",