@@ -446,7 +446,7 @@ print_graph_proc(struct trace_seq *s, pid_t pid)
446446
447447 /* First spaces to align center */
448448 for (i = 0 ; i < spaces / 2 ; i ++ ) {
449- ret = trace_seq_printf (s , " " );
449+ ret = trace_seq_putc (s , ' ' );
450450 if (!ret )
451451 return TRACE_TYPE_PARTIAL_LINE ;
452452 }
@@ -457,7 +457,7 @@ print_graph_proc(struct trace_seq *s, pid_t pid)
457457
458458 /* Last spaces to align center */
459459 for (i = 0 ; i < spaces - (spaces / 2 ); i ++ ) {
460- ret = trace_seq_printf (s , " " );
460+ ret = trace_seq_putc (s , ' ' );
461461 if (!ret )
462462 return TRACE_TYPE_PARTIAL_LINE ;
463463 }
@@ -503,7 +503,7 @@ verif_pid(struct trace_seq *s, pid_t pid, int cpu, struct fgraph_data *data)
503503 ------------------------------------------
504504
505505 */
506- ret = trace_seq_printf (s ,
506+ ret = trace_seq_puts (s ,
507507 " ------------------------------------------\n" );
508508 if (!ret )
509509 return TRACE_TYPE_PARTIAL_LINE ;
@@ -516,15 +516,15 @@ verif_pid(struct trace_seq *s, pid_t pid, int cpu, struct fgraph_data *data)
516516 if (ret == TRACE_TYPE_PARTIAL_LINE )
517517 return TRACE_TYPE_PARTIAL_LINE ;
518518
519- ret = trace_seq_printf (s , " => " );
519+ ret = trace_seq_puts (s , " => " );
520520 if (!ret )
521521 return TRACE_TYPE_PARTIAL_LINE ;
522522
523523 ret = print_graph_proc (s , pid );
524524 if (ret == TRACE_TYPE_PARTIAL_LINE )
525525 return TRACE_TYPE_PARTIAL_LINE ;
526526
527- ret = trace_seq_printf (s ,
527+ ret = trace_seq_puts (s ,
528528 "\n ------------------------------------------\n\n" );
529529 if (!ret )
530530 return TRACE_TYPE_PARTIAL_LINE ;
@@ -645,7 +645,7 @@ print_graph_irq(struct trace_iterator *iter, unsigned long addr,
645645 ret = print_graph_proc (s , pid );
646646 if (ret == TRACE_TYPE_PARTIAL_LINE )
647647 return TRACE_TYPE_PARTIAL_LINE ;
648- ret = trace_seq_printf (s , " | " );
648+ ret = trace_seq_puts (s , " | " );
649649 if (!ret )
650650 return TRACE_TYPE_PARTIAL_LINE ;
651651 }
@@ -657,9 +657,9 @@ print_graph_irq(struct trace_iterator *iter, unsigned long addr,
657657 return ret ;
658658
659659 if (type == TRACE_GRAPH_ENT )
660- ret = trace_seq_printf (s , "==========>" );
660+ ret = trace_seq_puts (s , "==========>" );
661661 else
662- ret = trace_seq_printf (s , "<==========" );
662+ ret = trace_seq_puts (s , "<==========" );
663663
664664 if (!ret )
665665 return TRACE_TYPE_PARTIAL_LINE ;
@@ -668,7 +668,7 @@ print_graph_irq(struct trace_iterator *iter, unsigned long addr,
668668 if (ret != TRACE_TYPE_HANDLED )
669669 return ret ;
670670
671- ret = trace_seq_printf (s , "\n" );
671+ ret = trace_seq_putc (s , '\n' );
672672
673673 if (!ret )
674674 return TRACE_TYPE_PARTIAL_LINE ;
@@ -705,13 +705,13 @@ trace_print_graph_duration(unsigned long long duration, struct trace_seq *s)
705705 len += strlen (nsecs_str );
706706 }
707707
708- ret = trace_seq_printf (s , " us " );
708+ ret = trace_seq_puts (s , " us " );
709709 if (!ret )
710710 return TRACE_TYPE_PARTIAL_LINE ;
711711
712712 /* Print remaining spaces to fit the row's width */
713713 for (i = len ; i < 7 ; i ++ ) {
714- ret = trace_seq_printf (s , " " );
714+ ret = trace_seq_putc (s , ' ' );
715715 if (!ret )
716716 return TRACE_TYPE_PARTIAL_LINE ;
717717 }
@@ -731,24 +731,24 @@ print_graph_duration(unsigned long long duration, struct trace_seq *s,
731731 /* No real adata, just filling the column with spaces */
732732 switch (duration ) {
733733 case DURATION_FILL_FULL :
734- ret = trace_seq_printf (s , " | " );
734+ ret = trace_seq_puts (s , " | " );
735735 return ret ? TRACE_TYPE_HANDLED : TRACE_TYPE_PARTIAL_LINE ;
736736 case DURATION_FILL_START :
737- ret = trace_seq_printf (s , " " );
737+ ret = trace_seq_puts (s , " " );
738738 return ret ? TRACE_TYPE_HANDLED : TRACE_TYPE_PARTIAL_LINE ;
739739 case DURATION_FILL_END :
740- ret = trace_seq_printf (s , " |" );
740+ ret = trace_seq_puts (s , " |" );
741741 return ret ? TRACE_TYPE_HANDLED : TRACE_TYPE_PARTIAL_LINE ;
742742 }
743743
744744 /* Signal a overhead of time execution to the output */
745745 if (flags & TRACE_GRAPH_PRINT_OVERHEAD ) {
746746 /* Duration exceeded 100 msecs */
747747 if (duration > 100000ULL )
748- ret = trace_seq_printf (s , "! " );
748+ ret = trace_seq_puts (s , "! " );
749749 /* Duration exceeded 10 msecs */
750750 else if (duration > 10000ULL )
751- ret = trace_seq_printf (s , "+ " );
751+ ret = trace_seq_puts (s , "+ " );
752752 }
753753
754754 /*
@@ -757,7 +757,7 @@ print_graph_duration(unsigned long long duration, struct trace_seq *s,
757757 * to fill out the space.
758758 */
759759 if (ret == -1 )
760- ret = trace_seq_printf (s , " " );
760+ ret = trace_seq_puts (s , " " );
761761
762762 /* Catching here any failure happenned above */
763763 if (!ret )
@@ -767,7 +767,7 @@ print_graph_duration(unsigned long long duration, struct trace_seq *s,
767767 if (ret != TRACE_TYPE_HANDLED )
768768 return ret ;
769769
770- ret = trace_seq_printf (s , "| " );
770+ ret = trace_seq_puts (s , "| " );
771771 if (!ret )
772772 return TRACE_TYPE_PARTIAL_LINE ;
773773
@@ -817,7 +817,7 @@ print_graph_entry_leaf(struct trace_iterator *iter,
817817
818818 /* Function */
819819 for (i = 0 ; i < call -> depth * TRACE_GRAPH_INDENT ; i ++ ) {
820- ret = trace_seq_printf (s , " " );
820+ ret = trace_seq_putc (s , ' ' );
821821 if (!ret )
822822 return TRACE_TYPE_PARTIAL_LINE ;
823823 }
@@ -858,7 +858,7 @@ print_graph_entry_nested(struct trace_iterator *iter,
858858
859859 /* Function */
860860 for (i = 0 ; i < call -> depth * TRACE_GRAPH_INDENT ; i ++ ) {
861- ret = trace_seq_printf (s , " " );
861+ ret = trace_seq_putc (s , ' ' );
862862 if (!ret )
863863 return TRACE_TYPE_PARTIAL_LINE ;
864864 }
@@ -917,7 +917,7 @@ print_graph_prologue(struct trace_iterator *iter, struct trace_seq *s,
917917 if (ret == TRACE_TYPE_PARTIAL_LINE )
918918 return TRACE_TYPE_PARTIAL_LINE ;
919919
920- ret = trace_seq_printf (s , " | " );
920+ ret = trace_seq_puts (s , " | " );
921921 if (!ret )
922922 return TRACE_TYPE_PARTIAL_LINE ;
923923 }
@@ -1117,7 +1117,7 @@ print_graph_return(struct ftrace_graph_ret *trace, struct trace_seq *s,
11171117
11181118 /* Closing brace */
11191119 for (i = 0 ; i < trace -> depth * TRACE_GRAPH_INDENT ; i ++ ) {
1120- ret = trace_seq_printf (s , " " );
1120+ ret = trace_seq_putc (s , ' ' );
11211121 if (!ret )
11221122 return TRACE_TYPE_PARTIAL_LINE ;
11231123 }
@@ -1129,7 +1129,7 @@ print_graph_return(struct ftrace_graph_ret *trace, struct trace_seq *s,
11291129 * belongs to, write out the function name.
11301130 */
11311131 if (func_match ) {
1132- ret = trace_seq_printf (s , "}\n" );
1132+ ret = trace_seq_puts (s , "}\n" );
11331133 if (!ret )
11341134 return TRACE_TYPE_PARTIAL_LINE ;
11351135 } else {
@@ -1179,13 +1179,13 @@ print_graph_comment(struct trace_seq *s, struct trace_entry *ent,
11791179 /* Indentation */
11801180 if (depth > 0 )
11811181 for (i = 0 ; i < (depth + 1 ) * TRACE_GRAPH_INDENT ; i ++ ) {
1182- ret = trace_seq_printf (s , " " );
1182+ ret = trace_seq_putc (s , ' ' );
11831183 if (!ret )
11841184 return TRACE_TYPE_PARTIAL_LINE ;
11851185 }
11861186
11871187 /* The comment */
1188- ret = trace_seq_printf (s , "/* " );
1188+ ret = trace_seq_puts (s , "/* " );
11891189 if (!ret )
11901190 return TRACE_TYPE_PARTIAL_LINE ;
11911191
@@ -1216,7 +1216,7 @@ print_graph_comment(struct trace_seq *s, struct trace_entry *ent,
12161216 s -> len -- ;
12171217 }
12181218
1219- ret = trace_seq_printf (s , " */\n" );
1219+ ret = trace_seq_puts (s , " */\n" );
12201220 if (!ret )
12211221 return TRACE_TYPE_PARTIAL_LINE ;
12221222
0 commit comments