summaryrefslogtreecommitdiffstats
path: root/init/main.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-09-12 19:34:22 +0200
committerGerd Hoffmann <kraxel@redhat.com>2017-11-10 12:45:35 +0100
commit4013e44ffaf7eaed60fa39750a2944b774b9ea3f (patch)
tree2390a7a5a1d868d65d2c322a8200dbadfd705df9 /init/main.c
parentdrm/cirrus: add create_handle support. (diff)
downloadlinux-4013e44ffaf7eaed60fa39750a2944b774b9ea3f.tar.xz
linux-4013e44ffaf7eaed60fa39750a2944b774b9ea3f.zip
drm: qxl: remove pr_info message, stops log spamming
Simply mmap'ing /dev/dri/card0 repeatedly will spam the kernel log with qxl_mmap information messages. The following example code illustrates this: int main(void) { int fd = open("/dev/dri/card0", O_RDONLY); if (fd == -1) err(1, "open failed"); for (;;) { void *m = mmap(NULL, 4096, PROT_READ, MAP_SHARED, fd, 0); if (m != MAP_FAILED) munmap(m, 4096); } } Stop the spamming by removing the pr_info message. Since the mmap'ing returns -EINVAL there is no need for the pr_info message. Signed-off-by: Colin Ian King <colin.king@canonical.com> Link: http://patchwork.freedesktop.org/patch/msgid/20170912173422.14062-1-colin.king@canonical.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'init/main.c')
0 files changed, 0 insertions, 0 deletions