diff options
author | Tom Zanussi <tzanussi@gmail.com> | 2009-03-24 03:14:31 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-24 03:26:52 -0400 |
commit | 4bda2d517bfa3ce3d7044e06988cdddae7adffe2 (patch) | |
tree | 62d99deb281a0395942b462f7cff2d2b42f2d905 /kernel/trace/trace_events.c | |
parent | 09f1f245c79585383de63e3ca54d0f91824bff3a (diff) |
tracing/filters: use trace_seq_printf() to print filters
Impact: cleanup
Instead of just using the trace_seq buffer to print the filters, use
trace_seq_printf() as it was intended to be used.
Reported-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Tom Zanussi <tzanussi@gmail.com>
Cc: =?ISO-8859-1?Q?Fr=E9d=E9ric?= Weisbecker <fweisbec@gmail.com>
LKML-Reference: <1237878871.8339.59.camel@charm-linux>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace_events.c')
-rw-r--r-- | kernel/trace/trace_events.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index a9381384aa9e..d132997ab756 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c | |||
@@ -481,8 +481,8 @@ event_filter_read(struct file *filp, char __user *ubuf, size_t cnt, | |||
481 | 481 | ||
482 | trace_seq_init(s); | 482 | trace_seq_init(s); |
483 | 483 | ||
484 | r = filter_print_preds(call->preds, s->buffer); | 484 | filter_print_preds(call->preds, s); |
485 | r = simple_read_from_buffer(ubuf, cnt, ppos, s->buffer, r); | 485 | r = simple_read_from_buffer(ubuf, cnt, ppos, s->buffer, s->len); |
486 | 486 | ||
487 | kfree(s); | 487 | kfree(s); |
488 | 488 | ||
@@ -547,8 +547,8 @@ subsystem_filter_read(struct file *filp, char __user *ubuf, size_t cnt, | |||
547 | 547 | ||
548 | trace_seq_init(s); | 548 | trace_seq_init(s); |
549 | 549 | ||
550 | r = filter_print_preds(system->preds, s->buffer); | 550 | filter_print_preds(system->preds, s); |
551 | r = simple_read_from_buffer(ubuf, cnt, ppos, s->buffer, r); | 551 | r = simple_read_from_buffer(ubuf, cnt, ppos, s->buffer, s->len); |
552 | 552 | ||
553 | kfree(s); | 553 | kfree(s); |
554 | 554 | ||