udl-kms: dont spam the syslog with debug messages
authorMikulas Patocka <mpatocka@redhat.com>
Sun, 3 Jun 2018 14:41:03 +0000 (16:41 +0200)
committerDave Airlie <airlied@redhat.com>
Mon, 30 Jul 2018 22:11:12 +0000 (08:11 +1000)
The udl kms driver writes messages to the syslog whenever some application
opens or closes /dev/fb0 and whenever the user switches between the
Xserver and the console.

This patch changes the priority of these messages to debug.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/udl/udl_fb.c
drivers/gpu/drm/udl/udl_modeset.c

index 8746eeeec44d9801d08e2917eb5fb8be9f43b392..dbb62f6eb48a5fba107acd9981b3cfae45f8f6a4 100644 (file)
@@ -178,7 +178,7 @@ static int udl_fb_mmap(struct fb_info *info, struct vm_area_struct *vma)
 
        pos = (unsigned long)info->fix.smem_start + offset;
 
-       pr_notice("mmap() framebuffer addr:%lu size:%lu\n",
+       pr_debug("mmap() framebuffer addr:%lu size:%lu\n",
                  pos, size);
 
        /* We don't want the framebuffer to be mapped encrypted */
@@ -236,7 +236,7 @@ static int udl_fb_open(struct fb_info *info, int user)
        }
 #endif
 
-       pr_notice("open /dev/fb%d user=%d fb_info=%p count=%d\n",
+       pr_debug("open /dev/fb%d user=%d fb_info=%p count=%d\n",
                  info->node, user, info, ufbdev->fb_count);
 
        return 0;
@@ -261,7 +261,7 @@ static int udl_fb_release(struct fb_info *info, int user)
        }
 #endif
 
-       pr_warn("released /dev/fb%d user=%d count=%d\n",
+       pr_debug("released /dev/fb%d user=%d count=%d\n",
                info->node, user, ufbdev->fb_count);
 
        return 0;
index 98c6a58bcb0792075590807a24015e08785aeeaa..7e37765cf5acd1ec0d2d74798b308c1a4be0bc5c 100644 (file)
@@ -243,7 +243,7 @@ static int udl_crtc_write_mode_to_hw(struct drm_crtc *crtc)
 
        memcpy(buf, udl->mode_buf, udl->mode_buf_len);
        retval = udl_submit_urb(dev, urb, udl->mode_buf_len);
-       DRM_INFO("write mode info %d\n", udl->mode_buf_len);
+       DRM_DEBUG("write mode info %d\n", udl->mode_buf_len);
        return retval;
 }