aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2018-01-30 16:56:43 -0500
committerEric Anholt <eric@anholt.net>2018-02-10 17:23:10 -0500
commit9c950e468cb5913d223282a05e6cd22fecce5ac8 (patch)
treeffde5f5d58447629f1e4b4a7124c83f9a3926cef
parent9569002a39cdc17b11f415f16215ec2428dad902 (diff)
drm: Print the pid when debug logging an ioctl error.
When we debug print what ioctl we're calling into, we include the pid. If you have multiple processes rendering simulataneously, the error return also needs the pid so you can see which of the ioctl calls was the one to fail. Signed-off-by: Eric Anholt <eric@anholt.net> Link: https://patchwork.freedesktop.org/patch/msgid/20180130215643.11016-1-eric@anholt.net Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--drivers/gpu/drm/drm_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_ioctl.c b/drivers/gpu/drm/drm_ioctl.c
index b1e96fb68ea8..af782911c505 100644
--- a/drivers/gpu/drm/drm_ioctl.c
+++ b/drivers/gpu/drm/drm_ioctl.c
@@ -848,7 +848,7 @@ long drm_ioctl(struct file *filp,
848 if (kdata != stack_kdata) 848 if (kdata != stack_kdata)
849 kfree(kdata); 849 kfree(kdata);
850 if (retcode) 850 if (retcode)
851 DRM_DEBUG("ret = %d\n", retcode); 851 DRM_DEBUG("pid=%d, ret = %d\n", task_pid_nr(current), retcode);
852 return retcode; 852 return retcode;
853} 853}
854EXPORT_SYMBOL(drm_ioctl); 854EXPORT_SYMBOL(drm_ioctl);