Skip to content

Commit

Permalink
drm: Remove the ', ' after the function name in debug logs
Browse files Browse the repository at this point in the history
Right now a debug message looks like:

  [drm:drm_ioctl], pid=860, dev=0xe200, auth=1, DRM_IOCTL_MODE_GETCRTC

That first comma looks weird as we already have ']' as a separator.
Remove it.

If anyone sees this commit message and also thinks that auth=1 isn't the
most useful info to have here, let's just say I'd happily review a patch
removing it. If I don't get annoyed enough to submit a patch, that is.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Lespiau, Damien authored and Dave Airlie committed Mar 28, 2014
1 parent 1287aa9 commit 0ed0298
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/drm_stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ void drm_ut_debug_printk(const char *function_name, const char *format, ...)
vaf.fmt = format;
vaf.va = &args;

printk(KERN_DEBUG "[" DRM_NAME ":%s], %pV", function_name, &vaf);
printk(KERN_DEBUG "[" DRM_NAME ":%s] %pV", function_name, &vaf);

va_end(args);
}
Expand Down

0 comments on commit 0ed0298

Please sign in to comment.