* [PATCH 1/1] kernel/locking/lockdep_proc.c: replace seq_printf and seq_puts
@ 2014-06-05 18:36 Fabian Frederick
2014-06-06 8:22 ` Peter Zijlstra
0 siblings, 1 reply; 2+ messages in thread
From: Fabian Frederick @ 2014-06-05 18:36 UTC (permalink / raw)
To: linux-kernel; +Cc: Fabian Frederick, Peter Zijlstra, Andrew Morton
replace seq_printf by seq_puts and seq_puts by seq_putc where possible
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
kernel/locking/lockdep_proc.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/kernel/locking/lockdep_proc.c b/kernel/locking/lockdep_proc.c
index ef43ac4..00c62ed 100644
--- a/kernel/locking/lockdep_proc.c
+++ b/kernel/locking/lockdep_proc.c
@@ -61,7 +61,7 @@ static int l_show(struct seq_file *m, void *v)
char usage[LOCK_USAGE_CHARS];
if (v == &all_lock_classes) {
- seq_printf(m, "all lock classes:\n");
+ seq_puts(m, "all lock classes:\n");
return 0;
}
@@ -77,18 +77,18 @@ static int l_show(struct seq_file *m, void *v)
get_usage_chars(class, usage);
seq_printf(m, " %s", usage);
- seq_printf(m, ": ");
+ seq_puts(m, ": ");
print_name(m, class);
- seq_puts(m, "\n");
+ seq_putc(m, '\n');
list_for_each_entry(entry, &class->locks_after, entry) {
if (entry->distance == 1) {
seq_printf(m, " -> [%p] ", entry->class->key);
print_name(m, entry->class);
- seq_puts(m, "\n");
+ seq_putc(m, '\n');
}
}
- seq_puts(m, "\n");
+ seq_putc(m, '\n');
return 0;
}
@@ -141,7 +141,7 @@ static int lc_show(struct seq_file *m, void *v)
int i;
if (v == SEQ_START_TOKEN) {
- seq_printf(m, "all lock chains:\n");
+ seq_puts(m, "all lock chains:\n");
return 0;
}
@@ -154,9 +154,9 @@ static int lc_show(struct seq_file *m, void *v)
seq_printf(m, "[%p] ", class->key);
print_name(m, class);
- seq_puts(m, "\n");
+ seq_putc(m, '\n');
}
- seq_puts(m, "\n");
+ seq_putc(m, '\n');
return 0;
}
@@ -529,7 +529,7 @@ static void seq_header(struct seq_file *m)
seq_puts(m, "lock_stat version 0.4\n");
if (unlikely(!debug_locks))
- seq_printf(m, "*WARNING* lock debugging disabled!! - possibly due to a lockdep warning\n");
+ seq_puts(m, "*WARNING* lock debugging disabled!! - possibly due to a lockdep warning\n");
seq_line(m, '-', 0, 40 + 1 + 12 * (14 + 1));
seq_printf(m, "%40s %14s %14s %14s %14s %14s %14s %14s %14s %14s %14s "
@@ -548,7 +548,7 @@ static void seq_header(struct seq_file *m)
"holdtime-total",
"holdtime-avg");
seq_line(m, '-', 0, 40 + 1 + 12 * (14 + 1));
- seq_printf(m, "\n");
+ seq_putc(m, '\n');
}
static void *ls_start(struct seq_file *m, loff_t *pos)
--
1.8.4.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] kernel/locking/lockdep_proc.c: replace seq_printf and seq_puts
2014-06-05 18:36 [PATCH 1/1] kernel/locking/lockdep_proc.c: replace seq_printf and seq_puts Fabian Frederick
@ 2014-06-06 8:22 ` Peter Zijlstra
0 siblings, 0 replies; 2+ messages in thread
From: Peter Zijlstra @ 2014-06-06 8:22 UTC (permalink / raw)
To: Fabian Frederick; +Cc: linux-kernel, Andrew Morton
[-- Attachment #1: Type: text/plain, Size: 145 bytes --]
On Thu, Jun 05, 2014 at 08:36:48PM +0200, Fabian Frederick wrote:
> replace seq_printf by seq_puts and seq_puts by seq_putc where possible
Why?
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-06 8:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-05 18:36 [PATCH 1/1] kernel/locking/lockdep_proc.c: replace seq_printf and seq_puts Fabian Frederick
2014-06-06 8:22 ` Peter Zijlstra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox