summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_stub.c
diff options
context:
space:
mode:
authorLespiau, Damien <damien.lespiau@intel.com>2014-03-24 16:53:17 +0100
committerDave Airlie <airlied@redhat.com>2014-03-28 03:57:45 +0100
commit1287aa903f1b9248f34fb215e3b875d2ae243425 (patch)
tree5c7ee83d6bfe99dfc323fd9b8e737ec376b6f5bc /drivers/gpu/drm/drm_stub.c
parentdrm: drm_ut_debug_printk() isn't called with NULL anywmore (diff)
downloadlinux-1287aa903f1b9248f34fb215e3b875d2ae243425.tar.xz
linux-1287aa903f1b9248f34fb215e3b875d2ae243425.zip
drm: Remove the prefix argument of drm_ut_debug_printk()
This is always DRM_NAME, so we can just make it part of the format string instead of asking prink to do it for us. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_stub.c')
-rw-r--r--drivers/gpu/drm/drm_stub.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/drm_stub.c b/drivers/gpu/drm/drm_stub.c
index 0b1a912e1b93..9b148738c9be 100644
--- a/drivers/gpu/drm/drm_stub.c
+++ b/drivers/gpu/drm/drm_stub.c
@@ -97,9 +97,7 @@ int drm_err(const char *func, const char *format, ...)
}
EXPORT_SYMBOL(drm_err);
-void drm_ut_debug_printk(const char *prefix,
- const char *function_name,
- const char *format, ...)
+void drm_ut_debug_printk(const char *function_name, const char *format, ...)
{
struct va_format vaf;
va_list args;
@@ -108,7 +106,7 @@ void drm_ut_debug_printk(const char *prefix,
vaf.fmt = format;
vaf.va = &args;
- printk(KERN_DEBUG "[%s:%s], %pV", prefix, function_name, &vaf);
+ printk(KERN_DEBUG "[" DRM_NAME ":%s], %pV", function_name, &vaf);
va_end(args);
}