Guest User

Untitled

a guest
May 24th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. Index: libdrm/xf86drm.c
  2. ===================================================================
  3. --- libdrm/xf86drm.c (revision 15)
  4. +++ libdrm/xf86drm.c (working copy)
  5. @@ -290,6 +290,8 @@
  6. mkdir(DRM_DIR_NAME, DRM_DEV_DIRMODE);
  7. chown(DRM_DIR_NAME, 0, 0); /* root:root */
  8. chmod(DRM_DIR_NAME, DRM_DEV_DIRMODE);
  9. + } else {
  10. + drmMsg("drmOpenDevice: %s does not exists\n", DRM_DIR_NAME);
  11. }
  12.  
  13. /* Check if the device node exists and create it if necessary. */
  14. @@ -298,6 +300,8 @@
  15. return DRM_ERR_NOT_ROOT;
  16. remove(buf);
  17. mknod(buf, S_IFCHR | devmode, dev);
  18. + } else {
  19. + drmMsg("drmOpenDevice: %s does not exists\n", buf);
  20. }
  21.  
  22. if (drm_server_info) {
  23. @@ -315,13 +319,17 @@
  24. * and try again if so.
  25. */
  26. if (st.st_rdev != dev) {
  27. + drmMsg("drmOpenDevice: The device %s is not good!\n", buf);
  28. if (!isroot)
  29. return DRM_ERR_NOT_ROOT;
  30. remove(buf);
Add Comment
Please, Sign In to add comment