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>
This commit is contained in:

gecommit door
Rob Clark

bovenliggende
63f4cc015b
commit
4538d73245
@@ -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);
|
||||
|
Verwijs in nieuw issue
Block a user