diff options
author | Conrad Meyer <cem@FreeBSD.org> | 2019-08-07 19:28:35 +0000 |
---|---|---|
committer | Conrad Meyer <cem@FreeBSD.org> | 2019-08-07 19:28:35 +0000 |
commit | ac03832ef3afa26cc8e23bf5cfeaa32501b21c3e (patch) | |
tree | 099c85706b554866296760b5ba97548aaa140133 /sys/geom/geom.h | |
parent | 76cb1112da20279c59bc8189519c4122a4d0d96a (diff) | |
download | src-ac03832ef3afa26cc8e23bf5cfeaa32501b21c3e.tar.gz src-ac03832ef3afa26cc8e23bf5cfeaa32501b21c3e.zip |
GEOM: Reduce unnecessary log interleaving with sbufs
Similar to what was done for device_printfs in r347229.
Convert g_print_bio() to a thin shim around g_format_bio(), which acts on an
sbuf; documented in g_bio.9.
Reviewed by: markj
Discussed with: rlibby
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D21165
Notes
Notes:
svn path=/head/; revision=350694
Diffstat (limited to 'sys/geom/geom.h')
-rw-r--r-- | sys/geom/geom.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/geom/geom.h b/sys/geom/geom.h index e4f0ed095eaf..b13e59d9b6d9 100644 --- a/sys/geom/geom.h +++ b/sys/geom/geom.h @@ -345,7 +345,8 @@ void g_reset_bio(struct bio *); void * g_read_data(struct g_consumer *cp, off_t offset, off_t length, int *error); int g_write_data(struct g_consumer *cp, off_t offset, void *ptr, off_t length); int g_delete_data(struct g_consumer *cp, off_t offset, off_t length); -void g_print_bio(struct bio *bp); +void g_format_bio(struct sbuf *, const struct bio *bp); +void g_print_bio(const char *prefix, const struct bio *bp, const char *fmtsuffix, ...) __printflike(3, 4); int g_use_g_read_data(void *, off_t, void **, int); int g_use_g_write_data(void *, off_t, void *, int); |