Skip to content

v3dv: Use errno when logging an error to stderr

Maíra Canal requested to merge mairacanal/mesa:v3dv/fix-errno into main

When logging a failed IOCTL, an errno is more useful than the output of drmIoctl(). When the IOCTL fails, the return is usually -1 and this value isn't very useful. On the other hand, the errno can help us to debug the reason why the IOCTL failed.

/cc @apinheiro @itoral

Merge request reports