Commit dbcf3e06cae0424d85c8dd1a1b93e25e84b06a8d
Committed by
Steven Rostedt
1 parent
467aa1f276
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
RAS/tracing: Use trace_seq_buffer_ptr() helper instead of open coded
Use the helper function trace_seq_buffer_ptr() to get the current location of the next buffer write of a trace_seq object, instead of open coding it. This facilitates the conversion of trace_seq to use seq_buf. Tested-by: Jiri Kosina <jkosina@suse.cz> Acked-by: Jiri Kosina <jkosina@suse.cz> Acked-by: Borislav Petkov <bp@suse.de> Reviewed-by: Petr Mladek <pmladek@suse.cz> Cc: Chen Gong <gong.chen@linux.intel.com> Cc: Tony Luck <tony.luck@intel.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/firmware/efi/cper.c
... | ... | @@ -294,7 +294,7 @@ |
294 | 294 | const char *cper_mem_err_unpack(struct trace_seq *p, |
295 | 295 | struct cper_mem_err_compact *cmem) |
296 | 296 | { |
297 | - const char *ret = p->buffer + p->len; | |
297 | + const char *ret = trace_seq_buffer_ptr(p); | |
298 | 298 | |
299 | 299 | if (cper_mem_err_location(cmem, rcd_decode_str)) |
300 | 300 | trace_seq_printf(p, "%s", rcd_decode_str); |