Wambui Karuga
b5280cd0bd
drm/i915/dsi: conversion to struct drm_device log macros.
This converts the more straightforward instances of the printk based
logging macros with the struct drm_device based logging macros.
This transformation was achieved using coccinelle and the following
script for matching an existing struct drm_i915_private device:
@rule1@
identifier fn, T;
@@
fn(...,struct drm_i915_private *T,...) {
<+...
(
-DRM_INFO(
+drm_info(&T->drm,
...)
|
-DRM_ERROR(
+drm_err(&T->drm,
...)
|
-DRM_WARN(
+drm_warn(&T->drm,
...)
|
-DRM_DEBUG(
+drm_dbg(&T->drm,
...)
|
-DRM_DEBUG_DRIVER(
+drm_dbg(&T->drm,
...)
|
-DRM_DEBUG_KMS(
+drm_dbg_kms(&T->drm,
...)
|
-DRM_DEBUG_ATOMIC(
+drm_dbg_atomic(&T->drm,
...)
)
...+>
}
@rule2@
identifier fn, T;
@@
fn(...) {
...
struct drm_i915_private *T = ...;
<+...
(
-DRM_INFO(
+drm_info(&T->drm,
...)
|
-DRM_ERROR(
+drm_err(&T->drm,
...)
|
-DRM_WARN(
+drm_warn(&T->drm,
...)
|
-DRM_DEBUG(
+drm_dbg(&T->drm,
...)
|
-DRM_DEBUG_KMS(
+drm_dbg_kms(&T->drm,
...)
|
-DRM_DEBUG_DRIVER(
+drm_dbg(&T->drm,
...)
|
-DRM_DEBUG_ATOMIC(
+drm_dbg_atomic(&T->drm,
...)
)
...+>
}
New checkpatch warnings were fixed manually.
Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200122110844.2022-2-wambui.karugax@gmail.com
2020-01-25 16:19:27 +02:00
..
2020-01-25 16:19:27 +02:00
2020-01-24 21:08:24 +00:00
2020-01-24 21:08:24 +00:00
2020-01-07 19:27:36 +00:00
2020-01-02 12:24:10 +02:00
2020-01-07 19:27:36 +00:00
2020-01-02 12:24:10 +02:00
2019-11-27 17:02:14 +00:00
2020-01-17 13:27:10 +00:00
2019-12-02 21:57:23 +00:00
2019-12-30 12:10:38 +00:00
2019-12-16 23:13:12 +00:00
2020-01-17 13:00:16 +00:00
2020-01-15 15:10:16 +02:00
2020-01-21 18:17:06 +02:00
2020-01-22 17:54:33 +02:00
2020-01-23 11:07:00 +02:00
2019-12-05 13:50:39 +00:00
2020-01-22 17:57:39 +02:00
2020-01-07 19:27:36 +00:00
2020-01-07 19:27:36 +00:00
2020-01-24 10:09:56 +00:00
2019-12-27 15:25:04 +10:00
2019-12-04 15:11:44 +00:00
2019-12-18 17:38:56 +00:00
2020-01-21 22:27:26 +00:00
2020-01-17 13:01:02 +00:00
2020-01-22 17:57:39 +02:00
2019-10-26 19:28:59 +01:00
2019-12-11 22:40:41 +00:00
2019-12-11 22:40:41 +00:00
2020-01-04 17:57:46 +00:00
2020-01-22 10:51:32 +02:00
2020-01-22 10:51:32 +02:00
2020-01-24 21:08:24 +00:00
2019-12-13 20:16:23 +00:00
2020-01-22 17:57:39 +02:00
2019-12-13 20:16:23 +00:00
2020-01-22 17:54:33 +02:00
2019-12-18 15:23:41 +00:00
2019-11-25 15:08:24 +02:00
2020-01-16 09:33:41 -08:00
2020-01-22 17:10:16 +00:00
2020-01-17 13:20:18 +00:00
2020-01-16 19:56:15 +00:00
2019-11-22 10:47:38 +00:00
2019-11-11 18:30:13 +00:00
2019-12-18 10:13:03 +00:00
2019-12-06 19:09:46 +00:00
2019-12-06 19:09:33 +00:00
2020-01-10 15:34:33 +00:00
2020-01-15 17:19:59 +02:00
2019-12-17 13:57:54 +01:00
2019-12-12 12:35:17 +00:00
2020-01-17 17:41:33 +02:00
2020-01-07 19:27:36 +00:00
2020-01-24 10:37:13 +00:00
2020-01-07 19:27:36 +00:00
2020-01-22 17:54:33 +02:00
2020-01-17 17:41:33 +02:00
2019-12-09 09:58:51 +00:00
2020-01-17 17:44:19 +02:00
2020-01-17 17:44:19 +02:00
2020-01-05 01:08:09 +00:00
2020-01-22 17:54:33 +02:00
2019-11-18 16:36:03 +02:00
2020-01-22 17:54:33 +02:00
2019-12-04 15:37:30 +02:00
2020-01-10 16:11:04 +02:00
2019-10-31 20:41:47 +00:00
2020-01-22 17:54:33 +02:00
2020-01-22 17:57:39 +02:00
2020-01-03 00:33:07 +00:00
2020-01-03 00:33:07 +00:00
2020-01-22 10:51:32 +02:00
2019-12-11 11:13:50 +02:00
2019-11-27 10:12:14 +02:00
2019-10-31 20:41:47 +00:00
2020-01-15 15:10:16 +02:00