diff options
| author | zhangwei(Jovi) <jovi.zhangwei@huawei.com> | 2013-07-15 04:32:44 -0400 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2013-07-18 21:30:36 -0400 |
| commit | 146c3442f2dd0f50d9431aea5d0d10dfd97c9999 (patch) | |
| tree | 7ec08bbf5659c854fe46c6c9cc920a31c2354214 /kernel | |
| parent | 991821c86c2fb6cc4104ce679247864dbc070a83 (diff) | |
tracing: Use trace_seq_puts()/trace_seq_putc() where possible
For string without format specifiers, use trace_seq_puts()
or trace_seq_putc().
Link: http://lkml.kernel.org/r/51E3B3AC.1000605@huawei.com
Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@huawei.com>
[ fixed a trace_seq_putc(s, " ") to trace_seq_putc(s, ' ') ]
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/trace/ring_buffer.c | 10 | ||||
| -rw-r--r-- | kernel/trace/trace_events_filter.c | 4 | ||||
| -rw-r--r-- | kernel/trace/trace_functions_graph.c | 52 | ||||
| -rw-r--r-- | kernel/trace/trace_mmiotrace.c | 8 | ||||
| -rw-r--r-- | kernel/trace/trace_output.c | 14 | ||||
| -rw-r--r-- | kernel/trace/trace_syscalls.c | 2 |
6 files changed, 45 insertions, 45 deletions
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c index e444ff88f0a4..eef2e566b2e7 100644 --- a/kernel/trace/ring_buffer.c +++ b/kernel/trace/ring_buffer.c | |||
| @@ -36,11 +36,11 @@ int ring_buffer_print_entry_header(struct trace_seq *s) | |||
| 36 | { | 36 | { |
| 37 | int ret; | 37 | int ret; |
| 38 | 38 | ||
| 39 | ret = trace_seq_printf(s, "# compressed entry header\n"); | 39 | ret = trace_seq_puts(s, "# compressed entry header\n"); |
| 40 | ret = trace_seq_printf(s, "\ttype_len : 5 bits\n"); | 40 | ret = trace_seq_puts(s, "\ttype_len : 5 bits\n"); |
| 41 | ret = trace_seq_printf(s, "\ttime_delta : 27 bits\n"); | 41 | ret = trace_seq_puts(s, "\ttime_delta : 27 bits\n"); |
| 42 | ret = trace_seq_printf(s, "\tarray : 32 bits\n"); | 42 | ret = trace_seq_puts(s, "\tarray : 32 bits\n"); |
| 43 | ret = trace_seq_printf(s, "\n"); | 43 | ret = trace_seq_putc(s, '\n'); |
| 44 | ret = trace_seq_printf(s, "\tpadding : type == %d\n", | 44 | ret = trace_seq_printf(s, "\tpadding : type == %d\n", |
| 45 | RINGBUF_TYPE_PADDING); | 45 | RINGBUF_TYPE_PADDING); |
| 46 | ret = trace_seq_printf(s, "\ttime_extend : type == %d\n", | 46 | ret = trace_seq_printf(s, "\ttime_extend : type == %d\n", |
diff --git a/kernel/trace/trace_events_filter.c b/kernel/trace/trace_events_filter.c index 0d883dc057d6..0c7b75a8acc8 100644 --- a/kernel/trace/trace_events_filter.c +++ b/kernel/trace/trace_events_filter.c | |||
| @@ -646,7 +646,7 @@ void print_event_filter(struct ftrace_event_call *call, struct trace_seq *s) | |||
| 646 | if (filter && filter->filter_string) | 646 | if (filter && filter->filter_string) |
| 647 | trace_seq_printf(s, "%s\n", filter->filter_string); | 647 | trace_seq_printf(s, "%s\n", filter->filter_string); |
| 648 | else | 648 | else |
| 649 | trace_seq_printf(s, "none\n"); | 649 | trace_seq_puts(s, "none\n"); |
| 650 | mutex_unlock(&event_mutex); | 650 | mutex_unlock(&event_mutex); |
| 651 | } | 651 | } |
| 652 | 652 | ||
| @@ -660,7 +660,7 @@ void print_subsystem_event_filter(struct event_subsystem *system, | |||
| 660 | if (filter && filter->filter_string) | 660 | if (filter && filter->filter_string) |
| 661 | trace_seq_printf(s, "%s\n", filter->filter_string); | 661 | trace_seq_printf(s, "%s\n", filter->filter_string); |
| 662 | else | 662 | else |
| 663 | trace_seq_printf(s, DEFAULT_SYS_FILTER_MESSAGE "\n"); | 663 | trace_seq_puts(s, DEFAULT_SYS_FILTER_MESSAGE "\n"); |
| 664 | mutex_unlock(&event_mutex); | 664 | mutex_unlock(&event_mutex); |
| 665 | } | 665 | } |
| 666 | 666 | ||
diff --git a/kernel/trace/trace_functions_graph.c b/kernel/trace/trace_functions_graph.c index 8388bc99f2ee..d56ae9bae00b 100644 --- a/kernel/trace/trace_functions_graph.c +++ b/kernel/trace/trace_functions_graph.c | |||
| @@ -446,7 +446,7 @@ print_graph_proc(struct trace_seq *s, pid_t pid) | |||
| 446 | 446 | ||
| 447 | /* First spaces to align center */ | 447 | /* First spaces to align center */ |
| 448 | for (i = 0; i < spaces / 2; i++) { | 448 | for (i = 0; i < spaces / 2; i++) { |
| 449 | ret = trace_seq_printf(s, " "); | 449 | ret = trace_seq_putc(s, ' '); |
| 450 | if (!ret) | 450 | if (!ret) |
| 451 | return TRACE_TYPE_PARTIAL_LINE; | 451 | return TRACE_TYPE_PARTIAL_LINE; |
| 452 | } | 452 | } |
| @@ -457,7 +457,7 @@ print_graph_proc(struct trace_seq *s, pid_t pid) | |||
| 457 | 457 | ||
| 458 | /* Last spaces to align center */ | 458 | /* Last spaces to align center */ |
| 459 | for (i = 0; i < spaces - (spaces / 2); i++) { | 459 | for (i = 0; i < spaces - (spaces / 2); i++) { |
| 460 | ret = trace_seq_printf(s, " "); | 460 | ret = trace_seq_putc(s, ' '); |
| 461 | if (!ret) | 461 | if (!ret) |
| 462 | return TRACE_TYPE_PARTIAL_LINE; | 462 | return TRACE_TYPE_PARTIAL_LINE; |
| 463 | } | 463 | } |
| @@ -503,7 +503,7 @@ verif_pid(struct trace_seq *s, pid_t pid, int cpu, struct fgraph_data *data) | |||
| 503 | ------------------------------------------ | 503 | ------------------------------------------ |
| 504 | 504 | ||
| 505 | */ | 505 | */ |
| 506 | ret = trace_seq_printf(s, | 506 | ret = trace_seq_puts(s, |
| 507 | " ------------------------------------------\n"); | 507 | " ------------------------------------------\n"); |
| 508 | if (!ret) | 508 | if (!ret) |
| 509 | return TRACE_TYPE_PARTIAL_LINE; | 509 | return TRACE_TYPE_PARTIAL_LINE; |
| @@ -516,7 +516,7 @@ verif_pid(struct trace_seq *s, pid_t pid, int cpu, struct fgraph_data *data) | |||
| 516 | if (ret == TRACE_TYPE_PARTIAL_LINE) | 516 | if (ret == TRACE_TYPE_PARTIAL_LINE) |
| 517 | return TRACE_TYPE_PARTIAL_LINE; | 517 | return TRACE_TYPE_PARTIAL_LINE; |
| 518 | 518 | ||
| 519 | ret = trace_seq_printf(s, " => "); | 519 | ret = trace_seq_puts(s, " => "); |
| 520 | if (!ret) | 520 | if (!ret) |
| 521 | return TRACE_TYPE_PARTIAL_LINE; | 521 | return TRACE_TYPE_PARTIAL_LINE; |
| 522 | 522 | ||
| @@ -524,7 +524,7 @@ verif_pid(struct trace_seq *s, pid_t pid, int cpu, struct fgraph_data *data) | |||
| 524 | if (ret == TRACE_TYPE_PARTIAL_LINE) | 524 | if (ret == TRACE_TYPE_PARTIAL_LINE) |
| 525 | return TRACE_TYPE_PARTIAL_LINE; | 525 | return TRACE_TYPE_PARTIAL_LINE; |
| 526 | 526 | ||
| 527 | ret = trace_seq_printf(s, | 527 | ret = trace_seq_puts(s, |
| 528 | "\n ------------------------------------------\n\n"); | 528 | "\n ------------------------------------------\n\n"); |
| 529 | if (!ret) | 529 | if (!ret) |
| 530 | return TRACE_TYPE_PARTIAL_LINE; | 530 | return TRACE_TYPE_PARTIAL_LINE; |
| @@ -645,7 +645,7 @@ print_graph_irq(struct trace_iterator *iter, unsigned long addr, | |||
| 645 | ret = print_graph_proc(s, pid); | 645 | ret = print_graph_proc(s, pid); |
| 646 | if (ret == TRACE_TYPE_PARTIAL_LINE) | 646 | if (ret == TRACE_TYPE_PARTIAL_LINE) |
| 647 | return TRACE_TYPE_PARTIAL_LINE; | 647 | return TRACE_TYPE_PARTIAL_LINE; |
| 648 | ret = trace_seq_printf(s, " | "); | 648 | ret = trace_seq_puts(s, " | "); |
| 649 | if (!ret) | 649 | if (!ret) |
| 650 | return TRACE_TYPE_PARTIAL_LINE; | 650 | return TRACE_TYPE_PARTIAL_LINE; |
| 651 | } | 651 | } |
| @@ -657,9 +657,9 @@ print_graph_irq(struct trace_iterator *iter, unsigned long addr, | |||
| 657 | return ret; | 657 | return ret; |
| 658 | 658 | ||
| 659 | if (type == TRACE_GRAPH_ENT) | 659 | if (type == TRACE_GRAPH_ENT) |
| 660 | ret = trace_seq_printf(s, "==========>"); | 660 | ret = trace_seq_puts(s, "==========>"); |
| 661 | else | 661 | else |
| 662 | ret = trace_seq_printf(s, "<=========="); | 662 | ret = trace_seq_puts(s, "<=========="); |
| 663 | 663 | ||
| 664 | if (!ret) | 664 | if (!ret) |
| 665 | return TRACE_TYPE_PARTIAL_LINE; | 665 | return TRACE_TYPE_PARTIAL_LINE; |
| @@ -668,7 +668,7 @@ print_graph_irq(struct trace_iterator *iter, unsigned long addr, | |||
| 668 | if (ret != TRACE_TYPE_HANDLED) | 668 | if (ret != TRACE_TYPE_HANDLED) |
| 669 | return ret; | 669 | return ret; |
| 670 | 670 | ||
| 671 | ret = trace_seq_printf(s, "\n"); | 671 | ret = trace_seq_putc(s, '\n'); |
| 672 | 672 | ||
| 673 | if (!ret) | 673 | if (!ret) |
| 674 | return TRACE_TYPE_PARTIAL_LINE; | 674 | return TRACE_TYPE_PARTIAL_LINE; |
| @@ -705,13 +705,13 @@ trace_print_graph_duration(unsigned long long duration, struct trace_seq *s) | |||
| 705 | len += strlen(nsecs_str); | 705 | len += strlen(nsecs_str); |
| 706 | } | 706 | } |
| 707 | 707 | ||
| 708 | ret = trace_seq_printf(s, " us "); | 708 | ret = trace_seq_puts(s, " us "); |
| 709 | if (!ret) | 709 | if (!ret) |
| 710 | return TRACE_TYPE_PARTIAL_LINE; | 710 | return TRACE_TYPE_PARTIAL_LINE; |
| 711 | 711 | ||
| 712 | /* Print remaining spaces to fit the row's width */ | 712 | /* Print remaining spaces to fit the row's width */ |
| 713 | for (i = len; i < 7; i++) { | 713 | for (i = len; i < 7; i++) { |
| 714 | ret = trace_seq_printf(s, " "); | 714 | ret = trace_seq_putc(s, ' '); |
| 715 | if (!ret) | 715 | if (!ret) |
| 716 | return TRACE_TYPE_PARTIAL_LINE; | 716 | return TRACE_TYPE_PARTIAL_LINE; |
| 717 | } | 717 | } |
| @@ -731,13 +731,13 @@ print_graph_duration(unsigned long long duration, struct trace_seq *s, | |||
| 731 | /* No real adata, just filling the column with spaces */ | 731 | /* No real adata, just filling the column with spaces */ |
| 732 | switch (duration) { | 732 | switch (duration) { |
| 733 | case DURATION_FILL_FULL: | 733 | case DURATION_FILL_FULL: |
| 734 | ret = trace_seq_printf(s, " | "); | 734 | ret = trace_seq_puts(s, " | "); |
| 735 | return ret ? TRACE_TYPE_HANDLED : TRACE_TYPE_PARTIAL_LINE; | 735 | return ret ? TRACE_TYPE_HANDLED : TRACE_TYPE_PARTIAL_LINE; |
| 736 | case DURATION_FILL_START: | 736 | case DURATION_FILL_START: |
| 737 | ret = trace_seq_printf(s, " "); | 737 | ret = trace_seq_puts(s, " "); |
| 738 | return ret ? TRACE_TYPE_HANDLED : TRACE_TYPE_PARTIAL_LINE; | 738 | return ret ? TRACE_TYPE_HANDLED : TRACE_TYPE_PARTIAL_LINE; |
| 739 | case DURATION_FILL_END: | 739 | case DURATION_FILL_END: |
| 740 | ret = trace_seq_printf(s, " |"); | 740 | ret = trace_seq_puts(s, " |"); |
| 741 | return ret ? TRACE_TYPE_HANDLED : TRACE_TYPE_PARTIAL_LINE; | 741 | return ret ? TRACE_TYPE_HANDLED : TRACE_TYPE_PARTIAL_LINE; |
| 742 | } | 742 | } |
| 743 | 743 | ||
| @@ -745,10 +745,10 @@ print_graph_duration(unsigned long long duration, struct trace_seq *s, | |||
| 745 | if (flags & TRACE_GRAPH_PRINT_OVERHEAD) { | 745 | if (flags & TRACE_GRAPH_PRINT_OVERHEAD) { |
| 746 | /* Duration exceeded 100 msecs */ | 746 | /* Duration exceeded 100 msecs */ |
| 747 | if (duration > 100000ULL) | 747 | if (duration > 100000ULL) |
| 748 | ret = trace_seq_printf(s, "! "); | 748 | ret = trace_seq_puts(s, "! "); |
| 749 | /* Duration exceeded 10 msecs */ | 749 | /* Duration exceeded 10 msecs */ |
| 750 | else if (duration > 10000ULL) | 750 | else if (duration > 10000ULL) |
| 751 | ret = trace_seq_printf(s, "+ "); | 751 | ret = trace_seq_puts(s, "+ "); |
| 752 | } | 752 | } |
| 753 | 753 | ||
| 754 | /* | 754 | /* |
| @@ -757,7 +757,7 @@ print_graph_duration(unsigned long long duration, struct trace_seq *s, | |||
| 757 | * to fill out the space. | 757 | * to fill out the space. |
| 758 | */ | 758 | */ |
| 759 | if (ret == -1) | 759 | if (ret == -1) |
| 760 | ret = trace_seq_printf(s, " "); | 760 | ret = trace_seq_puts(s, " "); |
| 761 | 761 | ||
| 762 | /* Catching here any failure happenned above */ | 762 | /* Catching here any failure happenned above */ |
| 763 | if (!ret) | 763 | if (!ret) |
| @@ -767,7 +767,7 @@ print_graph_duration(unsigned long long duration, struct trace_seq *s, | |||
| 767 | if (ret != TRACE_TYPE_HANDLED) | 767 | if (ret != TRACE_TYPE_HANDLED) |
| 768 | return ret; | 768 | return ret; |
| 769 | 769 | ||
| 770 | ret = trace_seq_printf(s, "| "); | 770 | ret = trace_seq_puts(s, "| "); |
| 771 | if (!ret) | 771 | if (!ret) |
| 772 | return TRACE_TYPE_PARTIAL_LINE; | 772 | return TRACE_TYPE_PARTIAL_LINE; |
| 773 | 773 | ||
| @@ -817,7 +817,7 @@ print_graph_entry_leaf(struct trace_iterator *iter, | |||
| 817 | 817 | ||
| 818 | /* Function */ | 818 | /* Function */ |
| 819 | for (i = 0; i < call->depth * TRACE_GRAPH_INDENT; i++) { | 819 | for (i = 0; i < call->depth * TRACE_GRAPH_INDENT; i++) { |
| 820 | ret = trace_seq_printf(s, " "); | 820 | ret = trace_seq_putc(s, ' '); |
| 821 | if (!ret) | 821 | if (!ret) |
| 822 | return TRACE_TYPE_PARTIAL_LINE; | 822 | return TRACE_TYPE_PARTIAL_LINE; |
| 823 | } | 823 | } |
| @@ -858,7 +858,7 @@ print_graph_entry_nested(struct trace_iterator *iter, | |||
| 858 | 858 | ||
| 859 | /* Function */ | 859 | /* Function */ |
| 860 | for (i = 0; i < call->depth * TRACE_GRAPH_INDENT; i++) { | 860 | for (i = 0; i < call->depth * TRACE_GRAPH_INDENT; i++) { |
| 861 | ret = trace_seq_printf(s, " "); | 861 | ret = trace_seq_putc(s, ' '); |
| 862 | if (!ret) | 862 | if (!ret) |
| 863 | return TRACE_TYPE_PARTIAL_LINE; | 863 | return TRACE_TYPE_PARTIAL_LINE; |
| 864 | } | 864 | } |
| @@ -917,7 +917,7 @@ print_graph_prologue(struct trace_iterator *iter, struct trace_seq *s, | |||
| 917 | if (ret == TRACE_TYPE_PARTIAL_LINE) | 917 | if (ret == TRACE_TYPE_PARTIAL_LINE) |
| 918 | return TRACE_TYPE_PARTIAL_LINE; | 918 | return TRACE_TYPE_PARTIAL_LINE; |
| 919 | 919 | ||
| 920 | ret = trace_seq_printf(s, " | "); | 920 | ret = trace_seq_puts(s, " | "); |
| 921 | if (!ret) | 921 | if (!ret) |
| 922 | return TRACE_TYPE_PARTIAL_LINE; | 922 | return TRACE_TYPE_PARTIAL_LINE; |
| 923 | } | 923 | } |
| @@ -1117,7 +1117,7 @@ print_graph_return(struct ftrace_graph_ret *trace, struct trace_seq *s, | |||
| 1117 | 1117 | ||
| 1118 | /* Closing brace */ | 1118 | /* Closing brace */ |
| 1119 | for (i = 0; i < trace->depth * TRACE_GRAPH_INDENT; i++) { | 1119 | for (i = 0; i < trace->depth * TRACE_GRAPH_INDENT; i++) { |
| 1120 | ret = trace_seq_printf(s, " "); | 1120 | ret = trace_seq_putc(s, ' '); |
| 1121 | if (!ret) | 1121 | if (!ret) |
| 1122 | return TRACE_TYPE_PARTIAL_LINE; | 1122 | return TRACE_TYPE_PARTIAL_LINE; |
| 1123 | } | 1123 | } |
| @@ -1129,7 +1129,7 @@ print_graph_return(struct ftrace_graph_ret *trace, struct trace_seq *s, | |||
| 1129 | * belongs to, write out the function name. | 1129 | * belongs to, write out the function name. |
| 1130 | */ | 1130 | */ |
| 1131 | if (func_match) { | 1131 | if (func_match) { |
| 1132 | ret = trace_seq_printf(s, "}\n"); | 1132 | ret = trace_seq_puts(s, "}\n"); |
| 1133 | if (!ret) | 1133 | if (!ret) |
| 1134 | return TRACE_TYPE_PARTIAL_LINE; | 1134 | return TRACE_TYPE_PARTIAL_LINE; |
| 1135 | } else { | 1135 | } else { |
| @@ -1179,13 +1179,13 @@ print_graph_comment(struct trace_seq *s, struct trace_entry *ent, | |||
| 1179 | /* Indentation */ | 1179 | /* Indentation */ |
| 1180 | if (depth > 0) | 1180 | if (depth > 0) |
| 1181 | for (i = 0; i < (depth + 1) * TRACE_GRAPH_INDENT; i++) { | 1181 | for (i = 0; i < (depth + 1) * TRACE_GRAPH_INDENT; i++) { |
| 1182 | ret = trace_seq_printf(s, " "); | 1182 | ret = trace_seq_putc(s, ' '); |
| 1183 | if (!ret) | 1183 | if (!ret) |
| 1184 | return TRACE_TYPE_PARTIAL_LINE; | 1184 | return TRACE_TYPE_PARTIAL_LINE; |
| 1185 | } | 1185 | } |
| 1186 | 1186 | ||
| 1187 | /* The comment */ | 1187 | /* The comment */ |
| 1188 | ret = trace_seq_printf(s, "/* "); | 1188 | ret = trace_seq_puts(s, "/* "); |
| 1189 | if (!ret) | 1189 | if (!ret) |
| 1190 | return TRACE_TYPE_PARTIAL_LINE; | 1190 | return TRACE_TYPE_PARTIAL_LINE; |
| 1191 | 1191 | ||
| @@ -1216,7 +1216,7 @@ print_graph_comment(struct trace_seq *s, struct trace_entry *ent, | |||
| 1216 | s->len--; | 1216 | s->len--; |
| 1217 | } | 1217 | } |
| 1218 | 1218 | ||
| 1219 | ret = trace_seq_printf(s, " */\n"); | 1219 | ret = trace_seq_puts(s, " */\n"); |
| 1220 | if (!ret) | 1220 | if (!ret) |
| 1221 | return TRACE_TYPE_PARTIAL_LINE; | 1221 | return TRACE_TYPE_PARTIAL_LINE; |
| 1222 | 1222 | ||
diff --git a/kernel/trace/trace_mmiotrace.c b/kernel/trace/trace_mmiotrace.c index a5e8f4878bfa..b3dcfb2f0fef 100644 --- a/kernel/trace/trace_mmiotrace.c +++ b/kernel/trace/trace_mmiotrace.c | |||
| @@ -90,7 +90,7 @@ static int mmio_print_pcidev(struct trace_seq *s, const struct pci_dev *dev) | |||
| 90 | if (drv) | 90 | if (drv) |
| 91 | ret += trace_seq_printf(s, " %s\n", drv->name); | 91 | ret += trace_seq_printf(s, " %s\n", drv->name); |
| 92 | else | 92 | else |
| 93 | ret += trace_seq_printf(s, " \n"); | 93 | ret += trace_seq_puts(s, " \n"); |
| 94 | return ret; | 94 | return ret; |
| 95 | } | 95 | } |
| 96 | 96 | ||
| @@ -107,7 +107,7 @@ static void mmio_pipe_open(struct trace_iterator *iter) | |||
| 107 | struct header_iter *hiter; | 107 | struct header_iter *hiter; |
| 108 | struct trace_seq *s = &iter->seq; | 108 | struct trace_seq *s = &iter->seq; |
| 109 | 109 | ||
| 110 | trace_seq_printf(s, "VERSION 20070824\n"); | 110 | trace_seq_puts(s, "VERSION 20070824\n"); |
| 111 | 111 | ||
| 112 | hiter = kzalloc(sizeof(*hiter), GFP_KERNEL); | 112 | hiter = kzalloc(sizeof(*hiter), GFP_KERNEL); |
| 113 | if (!hiter) | 113 | if (!hiter) |
| @@ -209,7 +209,7 @@ static enum print_line_t mmio_print_rw(struct trace_iterator *iter) | |||
| 209 | (rw->value >> 0) & 0xff, rw->pc, 0); | 209 | (rw->value >> 0) & 0xff, rw->pc, 0); |
| 210 | break; | 210 | break; |
| 211 | default: | 211 | default: |
| 212 | ret = trace_seq_printf(s, "rw what?\n"); | 212 | ret = trace_seq_puts(s, "rw what?\n"); |
| 213 | break; | 213 | break; |
| 214 | } | 214 | } |
| 215 | if (ret) | 215 | if (ret) |
| @@ -245,7 +245,7 @@ static enum print_line_t mmio_print_map(struct trace_iterator *iter) | |||
| 245 | secs, usec_rem, m->map_id, 0UL, 0); | 245 | secs, usec_rem, m->map_id, 0UL, 0); |
| 246 | break; | 246 | break; |
| 247 | default: | 247 | default: |
| 248 | ret = trace_seq_printf(s, "map what?\n"); | 248 | ret = trace_seq_puts(s, "map what?\n"); |
| 249 | break; | 249 | break; |
| 250 | } | 250 | } |
| 251 | if (ret) | 251 | if (ret) |
diff --git a/kernel/trace/trace_output.c b/kernel/trace/trace_output.c index bb922d9ee51b..34e7cbac0c9c 100644 --- a/kernel/trace/trace_output.c +++ b/kernel/trace/trace_output.c | |||
| @@ -78,7 +78,7 @@ enum print_line_t trace_print_printk_msg_only(struct trace_iterator *iter) | |||
| 78 | 78 | ||
| 79 | trace_assign_type(field, entry); | 79 | trace_assign_type(field, entry); |
| 80 | 80 | ||
| 81 | ret = trace_seq_printf(s, "%s", field->buf); | 81 | ret = trace_seq_puts(s, field->buf); |
| 82 | if (!ret) | 82 | if (!ret) |
| 83 | return TRACE_TYPE_PARTIAL_LINE; | 83 | return TRACE_TYPE_PARTIAL_LINE; |
| 84 | 84 | ||
| @@ -558,14 +558,14 @@ seq_print_userip_objs(const struct userstack_entry *entry, struct trace_seq *s, | |||
| 558 | if (ret) | 558 | if (ret) |
| 559 | ret = trace_seq_puts(s, "??"); | 559 | ret = trace_seq_puts(s, "??"); |
| 560 | if (ret) | 560 | if (ret) |
| 561 | ret = trace_seq_puts(s, "\n"); | 561 | ret = trace_seq_putc(s, '\n'); |
| 562 | continue; | 562 | continue; |
| 563 | } | 563 | } |
| 564 | if (!ret) | 564 | if (!ret) |
| 565 | break; | 565 | break; |
| 566 | if (ret) | 566 | if (ret) |
| 567 | ret = seq_print_user_ip(s, mm, ip, sym_flags); | 567 | ret = seq_print_user_ip(s, mm, ip, sym_flags); |
| 568 | ret = trace_seq_puts(s, "\n"); | 568 | ret = trace_seq_putc(s, '\n'); |
| 569 | } | 569 | } |
| 570 | 570 | ||
| 571 | if (mm) | 571 | if (mm) |
| @@ -579,7 +579,7 @@ seq_print_ip_sym(struct trace_seq *s, unsigned long ip, unsigned long sym_flags) | |||
| 579 | int ret; | 579 | int ret; |
| 580 | 580 | ||
| 581 | if (!ip) | 581 | if (!ip) |
| 582 | return trace_seq_printf(s, "0"); | 582 | return trace_seq_putc(s, '0'); |
| 583 | 583 | ||
| 584 | if (sym_flags & TRACE_ITER_SYM_OFFSET) | 584 | if (sym_flags & TRACE_ITER_SYM_OFFSET) |
| 585 | ret = seq_print_sym_offset(s, "%s", ip); | 585 | ret = seq_print_sym_offset(s, "%s", ip); |
| @@ -964,14 +964,14 @@ static enum print_line_t trace_fn_trace(struct trace_iterator *iter, int flags, | |||
| 964 | goto partial; | 964 | goto partial; |
| 965 | 965 | ||
| 966 | if ((flags & TRACE_ITER_PRINT_PARENT) && field->parent_ip) { | 966 | if ((flags & TRACE_ITER_PRINT_PARENT) && field->parent_ip) { |
| 967 | if (!trace_seq_printf(s, " <-")) | 967 | if (!trace_seq_puts(s, " <-")) |
| 968 | goto partial; | 968 | goto partial; |
| 969 | if (!seq_print_ip_sym(s, | 969 | if (!seq_print_ip_sym(s, |
| 970 | field->parent_ip, | 970 | field->parent_ip, |
| 971 | flags)) | 971 | flags)) |
| 972 | goto partial; | 972 | goto partial; |
| 973 | } | 973 | } |
| 974 | if (!trace_seq_printf(s, "\n")) | 974 | if (!trace_seq_putc(s, '\n')) |
| 975 | goto partial; | 975 | goto partial; |
| 976 | 976 | ||
| 977 | return TRACE_TYPE_HANDLED; | 977 | return TRACE_TYPE_HANDLED; |
| @@ -1210,7 +1210,7 @@ static enum print_line_t trace_stack_print(struct trace_iterator *iter, | |||
| 1210 | 1210 | ||
| 1211 | if (!seq_print_ip_sym(s, *p, flags)) | 1211 | if (!seq_print_ip_sym(s, *p, flags)) |
| 1212 | goto partial; | 1212 | goto partial; |
| 1213 | if (!trace_seq_puts(s, "\n")) | 1213 | if (!trace_seq_putc(s, '\n')) |
| 1214 | goto partial; | 1214 | goto partial; |
| 1215 | } | 1215 | } |
| 1216 | 1216 | ||
diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c index 322e16461072..061156215721 100644 --- a/kernel/trace/trace_syscalls.c +++ b/kernel/trace/trace_syscalls.c | |||
| @@ -175,7 +175,7 @@ print_syscall_exit(struct trace_iterator *iter, int flags, | |||
| 175 | entry = syscall_nr_to_meta(syscall); | 175 | entry = syscall_nr_to_meta(syscall); |
| 176 | 176 | ||
| 177 | if (!entry) { | 177 | if (!entry) { |
| 178 | trace_seq_printf(s, "\n"); | 178 | trace_seq_putc(s, '\n'); |
| 179 | return TRACE_TYPE_HANDLED; | 179 | return TRACE_TYPE_HANDLED; |
| 180 | } | 180 | } |
| 181 | 181 | ||
