gpu: host1x: Improve debug disassembly formatting
The host1x driver prints out "disassembly" dumps of the command FIFO and gather contents on submission timeouts. However, the output has been quite difficult to read with unnecessary newlines and occasional missing parentheses. Fix these problems by using pr_cont to remove unnecessary newlines and by fixing other small issues. Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com> Reviewed-by: Dmitry Osipenko <digetx@gmail.com> Tested-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
committed by
Thierry Reding
parent
2316f29fb5
commit
eb2ee1a28d
@@ -40,7 +40,19 @@ void host1x_debug_output(struct output *o, const char *fmt, ...)
|
||||
len = vsnprintf(o->buf, sizeof(o->buf), fmt, args);
|
||||
va_end(args);
|
||||
|
||||
o->fn(o->ctx, o->buf, len);
|
||||
o->fn(o->ctx, o->buf, len, false);
|
||||
}
|
||||
|
||||
void host1x_debug_cont(struct output *o, const char *fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
int len;
|
||||
|
||||
va_start(args, fmt);
|
||||
len = vsnprintf(o->buf, sizeof(o->buf), fmt, args);
|
||||
va_end(args);
|
||||
|
||||
o->fn(o->ctx, o->buf, len, true);
|
||||
}
|
||||
|
||||
static int show_channel(struct host1x_channel *ch, void *data, bool show_fifo)
|
||||
|
||||
Reference in New Issue
Block a user