drm: qxl: remove pr_info message, stops log spamming
authorColin Ian King <colin.king@canonical.com>
Tue, 12 Sep 2017 17:34:22 +0000 (18:34 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 10 Nov 2017 11:45:35 +0000 (12:45 +0100)
commit4013e44ffaf7eaed60fa39750a2944b774b9ea3f
tree2390a7a5a1d868d65d2c322a8200dbadfd705df9
parentadbf6eb3cd703398934a274ccb689344cfceb0cb
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>
drivers/gpu/drm/qxl/qxl_ttm.c