|
15 | 15 | #include <linux/mtd/mtd.h>
|
16 | 16 | #include <linux/compiler.h>
|
17 | 17 | #include <linux/sched/signal.h>
|
| 18 | +#include <linux/string_choices.h> |
18 | 19 | #include "nodelist.h"
|
19 | 20 | #include "debug.h"
|
20 | 21 |
|
@@ -317,9 +318,9 @@ static int jffs2_find_nextblock(struct jffs2_sb_info *c)
|
317 | 318 | And there's no space left. At all. */
|
318 | 319 | pr_crit("Argh. No free space left for GC. nr_erasing_blocks is %d. nr_free_blocks is %d. (erasableempty: %s, erasingempty: %s, erasependingempty: %s)\n",
|
319 | 320 | c->nr_erasing_blocks, c->nr_free_blocks,
|
320 |
| - list_empty(&c->erasable_list) ? "yes" : "no", |
321 |
| - list_empty(&c->erasing_list) ? "yes" : "no", |
322 |
| - list_empty(&c->erase_pending_list) ? "yes" : "no"); |
| 321 | + str_yes_no(list_empty(&c->erasable_list)), |
| 322 | + str_yes_no(list_empty(&c->erasing_list)), |
| 323 | + str_yes_no(list_empty(&c->erase_pending_list))); |
323 | 324 | return -ENOSPC;
|
324 | 325 | }
|
325 | 326 |
|
@@ -883,7 +884,7 @@ int jffs2_thread_should_wake(struct jffs2_sb_info *c)
|
883 | 884 |
|
884 | 885 | jffs2_dbg(1, "%s(): nr_free_blocks %d, nr_erasing_blocks %d, dirty_size 0x%x, vdirty_blocks %d: %s\n",
|
885 | 886 | __func__, c->nr_free_blocks, c->nr_erasing_blocks,
|
886 |
| - c->dirty_size, nr_very_dirty, ret ? "yes" : "no"); |
| 887 | + c->dirty_size, nr_very_dirty, str_yes_no(ret)); |
887 | 888 |
|
888 | 889 | return ret;
|
889 | 890 | }
|
0 commit comments