Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: libdrm/xf86drm.c
- ===================================================================
- --- libdrm/xf86drm.c (revision 15)
- +++ libdrm/xf86drm.c (working copy)
- @@ -290,6 +290,8 @@
- mkdir(DRM_DIR_NAME, DRM_DEV_DIRMODE);
- chown(DRM_DIR_NAME, 0, 0); /* root:root */
- chmod(DRM_DIR_NAME, DRM_DEV_DIRMODE);
- + } else {
- + drmMsg("drmOpenDevice: %s does not exists\n", DRM_DIR_NAME);
- }
- /* Check if the device node exists and create it if necessary. */
- @@ -298,6 +300,8 @@
- return DRM_ERR_NOT_ROOT;
- remove(buf);
- mknod(buf, S_IFCHR | devmode, dev);
- + } else {
- + drmMsg("drmOpenDevice: %s does not exists\n", buf);
- }
- if (drm_server_info) {
- @@ -315,13 +319,17 @@
- * and try again if so.
- */
- if (st.st_rdev != dev) {
- + drmMsg("drmOpenDevice: The device %s is not good!\n", buf);
- if (!isroot)
- return DRM_ERR_NOT_ROOT;
- remove(buf);
Add Comment
Please, Sign In to add comment