diff options
author | Coly Li <colyli@suse.de> | 2018-08-11 01:19:51 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-08-11 17:46:41 -0400 |
commit | d9c61d30e86a024b2f7c728706b8ab2c9e6ec2c1 (patch) | |
tree | facc8a6f7c9b0f5ed941b644683449efd0bf908d | |
parent | c63ca7871aa3f1777e2af978ea1967b2f5bf0ae2 (diff) |
bcache: replace '%pF' by '%pS' in seq_printf()
'%pF' and '%pf' are deprecated vsprintf pointer extensions, this patch
replace them by '%pS', which is suggested by checkpatch.pl.
Signed-off-by: Coly Li <colyli@suse.de>
Reviewed-by: Shenghui Wang <shhuiw@foxmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | drivers/md/bcache/closure.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/bcache/closure.c b/drivers/md/bcache/closure.c index 8570fc426e31..034067e0e9ce 100644 --- a/drivers/md/bcache/closure.c +++ b/drivers/md/bcache/closure.c | |||
@@ -168,7 +168,7 @@ static int debug_seq_show(struct seq_file *f, void *data) | |||
168 | list_for_each_entry(cl, &closure_list, all) { | 168 | list_for_each_entry(cl, &closure_list, all) { |
169 | int r = atomic_read(&cl->remaining); | 169 | int r = atomic_read(&cl->remaining); |
170 | 170 | ||
171 | seq_printf(f, "%p: %pF -> %pf p %p r %i ", | 171 | seq_printf(f, "%p: %pS -> %pS p %p r %i ", |
172 | cl, (void *) cl->ip, cl->fn, cl->parent, | 172 | cl, (void *) cl->ip, cl->fn, cl->parent, |
173 | r & CLOSURE_REMAINING_MASK); | 173 | r & CLOSURE_REMAINING_MASK); |
174 | 174 | ||
@@ -178,7 +178,7 @@ static int debug_seq_show(struct seq_file *f, void *data) | |||
178 | r & CLOSURE_RUNNING ? "R" : ""); | 178 | r & CLOSURE_RUNNING ? "R" : ""); |
179 | 179 | ||
180 | if (r & CLOSURE_WAITING) | 180 | if (r & CLOSURE_WAITING) |
181 | seq_printf(f, " W %pF\n", | 181 | seq_printf(f, " W %pS\n", |
182 | (void *) cl->waiting_on); | 182 | (void *) cl->waiting_on); |
183 | 183 | ||
184 | seq_printf(f, "\n"); | 184 | seq_printf(f, "\n"); |