diff options
author | Jordan Crouse <jcrouse@codeaurora.org> | 2018-07-24 18:33:22 +0200 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2018-07-30 14:49:38 +0200 |
commit | 4538d7324507fed892a18b79ad72c8501b6e7027 (patch) | |
tree | 0b6a3babcda1ff761a11cb2aa47943da132f0d24 /drivers/gpu | |
parent | drm: Add drm_puts() to complement drm_printf() (diff) | |
download | linux-4538d7324507fed892a18b79ad72c8501b6e7027.tar.xz linux-4538d7324507fed892a18b79ad72c8501b6e7027.zip |
drm: Add a -puts() function for the seq_file printer
Add a puts() function to use seq_puts() to help speed up
up print time for constant strings.
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/drm_print.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_print.c b/drivers/gpu/drm/drm_print.c index 01d4e5583b5d..45d787611723 100644 --- a/drivers/gpu/drm/drm_print.c +++ b/drivers/gpu/drm/drm_print.c @@ -104,6 +104,12 @@ void __drm_printfn_coredump(struct drm_printer *p, struct va_format *vaf) } EXPORT_SYMBOL(__drm_printfn_coredump); +void __drm_puts_seq_file(struct drm_printer *p, const char *str) +{ + seq_puts(p->arg, str); +} +EXPORT_SYMBOL(__drm_puts_seq_file); + void __drm_printfn_seq_file(struct drm_printer *p, struct va_format *vaf) { seq_printf(p->arg, "%pV", vaf); |