diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-04-15 17:31:47 -0400 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-05-21 20:14:18 -0400 |
| commit | ebf561b2083d797da4673207044855ccd764195b (patch) | |
| tree | 0b686ee7f3a96546fd82dc2a2bee67a018609352 /fs/bcachefs/util.h | |
| parent | bcachefs: bch2_dev_missing_bkey() (diff) | |
| download | linux-ebf561b2083d797da4673207044855ccd764195b.tar.gz linux-ebf561b2083d797da4673207044855ccd764195b.zip | |
bcachefs: print_str_as_lines() -> print_str()
bch2_print_string_as_lines() is a low level helper that allows messages
longer than 1k to be printed without truncation.
But we should always be printing with the helpers that take a filesystem
object, if we're in fsck they direct output to the userspace process
controlling fsck instead of the dmesg log.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/util.h')
| -rw-r--r-- | fs/bcachefs/util.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/bcachefs/util.h b/fs/bcachefs/util.h index ccc1cf699c4b..50f7197c67fc 100644 --- a/fs/bcachefs/util.h +++ b/fs/bcachefs/util.h @@ -212,8 +212,7 @@ u64 bch2_read_flag_list(const char *, const char * const[]); void bch2_prt_u64_base2_nbits(struct printbuf *, u64, unsigned); void bch2_prt_u64_base2(struct printbuf *, u64); -void bch2_print_string_as_lines(const char *prefix, const char *lines); -void bch2_print_string_as_lines_nonblocking(const char *prefix, const char *lines); +void bch2_print_string_as_lines(const char *, const char *, bool); typedef DARRAY(unsigned long) bch_stacktrace; int bch2_save_backtrace(bch_stacktrace *stack, struct task_struct *, unsigned, gfp_t); |
