public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH v3 1/4] drm-print
@ 2017-11-09 23:54 Chris Wilson
  2017-11-09 23:54 ` [PATCH v3 2/4] drm/i915: Make engine state pretty-printer header configurable Chris Wilson
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: Chris Wilson @ 2017-11-09 23:54 UTC (permalink / raw)
  To: intel-gfx

---
 include/drm/drm_print.h | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/include/drm/drm_print.h b/include/drm/drm_print.h
index edcea83a5050..d211d30e7b6c 100644
--- a/include/drm/drm_print.h
+++ b/include/drm/drm_print.h
@@ -80,6 +80,20 @@ void __drm_printfn_debug(struct drm_printer *p, struct va_format *vaf);
 __printf(2, 3)
 void drm_printf(struct drm_printer *p, const char *f, ...);
 
+/**
+ * drm_vprintf - print to a &drm_printer stream
+ * @p: the &drm_printer
+ * @f: format string
+ * @args: the va_list
+ */
+__printf(2, 0)
+static inline void drm_vprintf(struct drm_printer *p,
+			       const char *fmt, va_list *va)
+{
+	struct va_format vaf = { .fmt = fmt, .va = va };
+
+	p->printfn(p, &vaf);
+}
 
 /**
  * drm_seq_file_printer - construct a &drm_printer that outputs to &seq_file
-- 
2.15.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-11-17 13:34 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-09 23:54 [PATCH v3 1/4] drm-print Chris Wilson
2017-11-09 23:54 ` [PATCH v3 2/4] drm/i915: Make engine state pretty-printer header configurable Chris Wilson
2017-11-10 12:27   ` Mika Kuoppala
2017-11-09 23:54 ` [PATCH v3 3/4] drm/i915: Include engine state on detecting a missed breadcrumb/seqno Chris Wilson
2017-11-10  9:43   ` [PATCH v4] " Chris Wilson
2017-11-09 23:54 ` [PATCH v3 4/4] drm/i915: Add is-wedged flag to intel_engine_dump() Chris Wilson
2017-11-17 13:34   ` Mika Kuoppala
2017-11-10  0:14 ` ✓ Fi.CI.BAT: success for series starting with [v3,1/4] drm-print Patchwork
2017-11-10  1:10 ` ✓ Fi.CI.IGT: " Patchwork
2017-11-10  9:52 ` [PATCH v2] drm/printer: Add drm_vprintf() Chris Wilson
2017-11-10 11:28   ` Daniel Vetter
2017-11-10 10:03 ` ✗ Fi.CI.BAT: failure for series starting with [v3,1/4] drm-print (rev2) Patchwork
2017-11-10 10:20 ` ✗ Fi.CI.BAT: warning for series starting with [v2] drm/printer: Add drm_vprintf() (rev3) Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox