|
@@ -122,6 +122,23 @@ void __drm_printfn_debug(struct drm_printer *p, struct va_format *vaf)
|
|
|
}
|
|
|
EXPORT_SYMBOL(__drm_printfn_debug);
|
|
|
|
|
|
+/**
|
|
|
+ * drm_puts - print a const string to a &drm_printer stream
|
|
|
+ * @p: the &drm printer
|
|
|
+ * @str: const string
|
|
|
+ *
|
|
|
+ * Allow &drm_printer types that have a constant string
|
|
|
+ * option to use it.
|
|
|
+ */
|
|
|
+void drm_puts(struct drm_printer *p, const char *str)
|
|
|
+{
|
|
|
+ if (p->puts)
|
|
|
+ p->puts(p, str);
|
|
|
+ else
|
|
|
+ drm_printf(p, "%s", str);
|
|
|
+}
|
|
|
+EXPORT_SYMBOL(drm_puts);
|
|
|
+
|
|
|
/**
|
|
|
* drm_printf - print to a &drm_printer stream
|
|
|
* @p: the &drm_printer
|