@@ -2860,44 +2860,44 @@ static void test_ftrace_alive(struct seq_file *m)
28602860{
28612861 if (!ftrace_is_dead ())
28622862 return ;
2863- seq_printf (m , "# WARNING: FUNCTION TRACING IS CORRUPTED\n" );
2864- seq_printf (m , "# MAY BE MISSING FUNCTION EVENTS\n" );
2863+ seq_puts (m , "# WARNING: FUNCTION TRACING IS CORRUPTED\n" );
2864+ seq_puts (m , "# MAY BE MISSING FUNCTION EVENTS\n" );
28652865}
28662866
28672867#ifdef CONFIG_TRACER_MAX_TRACE
28682868static void show_snapshot_main_help (struct seq_file * m )
28692869{
2870- seq_printf (m , "# echo 0 > snapshot : Clears and frees snapshot buffer\n" );
2871- seq_printf (m , "# echo 1 > snapshot : Allocates snapshot buffer, if not already allocated.\n" );
2872- seq_printf (m , "# Takes a snapshot of the main buffer.\n" );
2873- seq_printf (m , "# echo 2 > snapshot : Clears snapshot buffer (but does not allocate or free)\n" );
2874- seq_printf (m , "# (Doesn't have to be '2' works with any number that\n" );
2875- seq_printf (m , "# is not a '0' or '1')\n" );
2870+ seq_puts (m , "# echo 0 > snapshot : Clears and frees snapshot buffer\n" );
2871+ seq_puts (m , "# echo 1 > snapshot : Allocates snapshot buffer, if not already allocated.\n" );
2872+ seq_puts (m , "# Takes a snapshot of the main buffer.\n" );
2873+ seq_puts (m , "# echo 2 > snapshot : Clears snapshot buffer (but does not allocate or free)\n" );
2874+ seq_puts (m , "# (Doesn't have to be '2' works with any number that\n" );
2875+ seq_puts (m , "# is not a '0' or '1')\n" );
28762876}
28772877
28782878static void show_snapshot_percpu_help (struct seq_file * m )
28792879{
2880- seq_printf (m , "# echo 0 > snapshot : Invalid for per_cpu snapshot file.\n" );
2880+ seq_puts (m , "# echo 0 > snapshot : Invalid for per_cpu snapshot file.\n" );
28812881#ifdef CONFIG_RING_BUFFER_ALLOW_SWAP
2882- seq_printf (m , "# echo 1 > snapshot : Allocates snapshot buffer, if not already allocated.\n" );
2883- seq_printf (m , "# Takes a snapshot of the main buffer for this cpu.\n" );
2882+ seq_puts (m , "# echo 1 > snapshot : Allocates snapshot buffer, if not already allocated.\n" );
2883+ seq_puts (m , "# Takes a snapshot of the main buffer for this cpu.\n" );
28842884#else
2885- seq_printf (m , "# echo 1 > snapshot : Not supported with this kernel.\n" );
2886- seq_printf (m , "# Must use main snapshot file to allocate.\n" );
2885+ seq_puts (m , "# echo 1 > snapshot : Not supported with this kernel.\n" );
2886+ seq_puts (m , "# Must use main snapshot file to allocate.\n" );
28872887#endif
2888- seq_printf (m , "# echo 2 > snapshot : Clears this cpu's snapshot buffer (but does not allocate)\n" );
2889- seq_printf (m , "# (Doesn't have to be '2' works with any number that\n" );
2890- seq_printf (m , "# is not a '0' or '1')\n" );
2888+ seq_puts (m , "# echo 2 > snapshot : Clears this cpu's snapshot buffer (but does not allocate)\n" );
2889+ seq_puts (m , "# (Doesn't have to be '2' works with any number that\n" );
2890+ seq_puts (m , "# is not a '0' or '1')\n" );
28912891}
28922892
28932893static void print_snapshot_help (struct seq_file * m , struct trace_iterator * iter )
28942894{
28952895 if (iter -> tr -> allocated_snapshot )
2896- seq_printf (m , "#\n# * Snapshot is allocated *\n#\n" );
2896+ seq_puts (m , "#\n# * Snapshot is allocated *\n#\n" );
28972897 else
2898- seq_printf (m , "#\n# * Snapshot is freed *\n#\n" );
2898+ seq_puts (m , "#\n# * Snapshot is freed *\n#\n" );
28992899
2900- seq_printf (m , "# Snapshot commands:\n" );
2900+ seq_puts (m , "# Snapshot commands:\n" );
29012901 if (iter -> cpu_file == RING_BUFFER_ALL_CPUS )
29022902 show_snapshot_main_help (m );
29032903 else
@@ -3251,7 +3251,7 @@ static int t_show(struct seq_file *m, void *v)
32513251 if (!t )
32523252 return 0 ;
32533253
3254- seq_printf ( m , "%s" , t -> name );
3254+ seq_puts ( m , t -> name );
32553255 if (t -> next )
32563256 seq_putc (m , ' ' );
32573257 else
@@ -5753,10 +5753,10 @@ ftrace_snapshot_print(struct seq_file *m, unsigned long ip,
57535753
57545754 seq_printf (m , "%ps:" , (void * )ip );
57555755
5756- seq_printf (m , "snapshot" );
5756+ seq_puts (m , "snapshot" );
57575757
57585758 if (count == -1 )
5759- seq_printf (m , ":unlimited\n" );
5759+ seq_puts (m , ":unlimited\n" );
57605760 else
57615761 seq_printf (m , ":count=%ld\n" , count );
57625762
0 commit comments