summaryrefslogtreecommitdiff
path: root/fs/bcachefs/util.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-02-20 04:52:44 -0500
committerKent Overstreet <kent.overstreet@gmail.com>2022-04-17 15:44:22 -0400
commit59fe84c2200b7a43c4baf8d89c69aea2bc15c0ad (patch)
tree5c49ad4a42b29141b2a248dd0d9fe85df75b716b /fs/bcachefs/util.h
parent72e822f26e4289fb238009ee2051a22bfb75071e (diff)
bcachefs: Kill bch_scnmemcpy()
bch_scnmemcpy was for printing length-limited strings that might not have a terminating null - turns out sprintf & pr_buf can do this with %.*s. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/util.h')
-rw-r--r--fs/bcachefs/util.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/bcachefs/util.h b/fs/bcachefs/util.h
index e55407dc5324..a80d4ec22d95 100644
--- a/fs/bcachefs/util.h
+++ b/fs/bcachefs/util.h
@@ -281,8 +281,6 @@ static inline void printbuf_newline(struct printbuf *buf)
pr_buf(buf, " ");
}
-void bch_scnmemcpy(struct printbuf *, const char *, size_t);
-
int bch2_strtoint_h(const char *, int *);
int bch2_strtouint_h(const char *, unsigned int *);
int bch2_strtoll_h(const char *, long long *);