diff options
| author | Colin Ian King <[email protected]> | 2017-09-12 17:34:22 +0000 |
|---|---|---|
| committer | Gerd Hoffmann <[email protected]> | 2017-11-10 11:45:35 +0000 |
| commit | 4013e44ffaf7eaed60fa39750a2944b774b9ea3f (patch) | |
| tree | 2390a7a5a1d868d65d2c322a8200dbadfd705df9 /drivers/gpu/drm/drm_framebuffer.c | |
| parent | drm/cirrus: add create_handle support. (diff) | |
| download | kernel-4013e44ffaf7eaed60fa39750a2944b774b9ea3f.tar.gz kernel-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 <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Gerd Hoffmann <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/drm_framebuffer.c')
0 files changed, 0 insertions, 0 deletions
