diff options
Diffstat (limited to 'drivers/gpu/host1x/debug.h')
-rw-r--r-- | drivers/gpu/host1x/debug.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/gpu/host1x/debug.h b/drivers/gpu/host1x/debug.h index 4595b2e0799f..990cce47e737 100644 --- a/drivers/gpu/host1x/debug.h +++ b/drivers/gpu/host1x/debug.h | |||
@@ -24,22 +24,28 @@ | |||
24 | struct host1x; | 24 | struct host1x; |
25 | 25 | ||
26 | struct output { | 26 | struct output { |
27 | void (*fn)(void *ctx, const char *str, size_t len); | 27 | void (*fn)(void *ctx, const char *str, size_t len, bool cont); |
28 | void *ctx; | 28 | void *ctx; |
29 | char buf[256]; | 29 | char buf[256]; |
30 | }; | 30 | }; |
31 | 31 | ||
32 | static inline void write_to_seqfile(void *ctx, const char *str, size_t len) | 32 | static inline void write_to_seqfile(void *ctx, const char *str, size_t len, |
33 | bool cont) | ||
33 | { | 34 | { |
34 | seq_write((struct seq_file *)ctx, str, len); | 35 | seq_write((struct seq_file *)ctx, str, len); |
35 | } | 36 | } |
36 | 37 | ||
37 | static inline void write_to_printk(void *ctx, const char *str, size_t len) | 38 | static inline void write_to_printk(void *ctx, const char *str, size_t len, |
39 | bool cont) | ||
38 | { | 40 | { |
39 | pr_info("%s", str); | 41 | if (cont) |
42 | pr_cont("%s", str); | ||
43 | else | ||
44 | pr_info("%s", str); | ||
40 | } | 45 | } |
41 | 46 | ||
42 | void __printf(2, 3) host1x_debug_output(struct output *o, const char *fmt, ...); | 47 | void __printf(2, 3) host1x_debug_output(struct output *o, const char *fmt, ...); |
48 | void __printf(2, 3) host1x_debug_cont(struct output *o, const char *fmt, ...); | ||
43 | 49 | ||
44 | extern unsigned int host1x_debug_trace_cmdbuf; | 50 | extern unsigned int host1x_debug_trace_cmdbuf; |
45 | 51 | ||