summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/inc/pp_debug.h
diff options
context:
space:
mode:
authorDavid Rokhvarg <David.Rokhvarg@amd.com>2015-11-19 14:45:39 -0500
committerAlex Deucher <alexander.deucher@amd.com>2015-12-21 16:42:42 -0500
commit6bd48d24045c3f93f3f57ca1d61388ea0b38c89c (patch)
tree98318da05b21a361a37a4af87ca915bbc82099d3 /drivers/gpu/drm/amd/powerplay/inc/pp_debug.h
parent0f8b106e11d616eb50aef8f58a47d383101aa4dc (diff)
downloadop-kernel-dev-6bd48d24045c3f93f3f57ca1d61388ea0b38c89c.zip
op-kernel-dev-6bd48d24045c3f93f3f57ca1d61388ea0b38c89c.tar.gz
drm/amd/powerplay: Add PPLib debug print macro.
- The macro is silent by default. - Use the macro to print Display Configuration - related changes. Signed-off-by: David Rokhvarg <David.Rokhvarg@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/inc/pp_debug.h')
-rw-r--r--drivers/gpu/drm/amd/powerplay/inc/pp_debug.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/inc/pp_debug.h b/drivers/gpu/drm/amd/powerplay/inc/pp_debug.h
index 3df3ded..d7d83b7 100644
--- a/drivers/gpu/drm/amd/powerplay/inc/pp_debug.h
+++ b/drivers/gpu/drm/amd/powerplay/inc/pp_debug.h
@@ -36,5 +36,12 @@
} \
} while (0)
-#endif
+
+#define PP_DBG_LOG(fmt, ...) \
+ do { \
+ if(0)printk(KERN_INFO "[ pp_dbg ] " fmt, ##__VA_ARGS__); \
+ } while (0)
+
+
+#endif /* PP_DEBUG_H */
OpenPOWER on IntegriCloud