[Intel-gfx] [PATCH 1/2] drm: add DRM_INFO_ONCE() to print a one-time DRM_INFO() message
Jani Nikula
jani.nikula at intel.com
Fri Jan 31 14:49:07 CET 2014
Just like DRM_INFO(), but only do it once.
Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
include/drm/drmP.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 04086c5be930..04a7f31301f8 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -199,6 +199,9 @@ int drm_err(const char *func, const char *format, ...);
#define DRM_INFO(fmt, ...) \
printk(KERN_INFO "[" DRM_NAME "] " fmt, ##__VA_ARGS__)
+#define DRM_INFO_ONCE(fmt, ...) \
+ printk_once(KERN_INFO "[" DRM_NAME "] " fmt, ##__VA_ARGS__)
+
/**
* Debug output.
*
--
1.7.9.5
More information about the Intel-gfx
mailing list