3 #include <linux/printbuf.h>
5 void prt_vprintf(struct printbuf *out, const char *fmt, va_list args)
13 len = vsnprintf(out->buf + out->pos, printbuf_remaining(out), fmt, args2);
14 } while (len + 1 >= printbuf_remaining(out) &&
15 !printbuf_make_room(out, len + 1));
17 len = min_t(size_t, len,
18 printbuf_remaining(out) ? printbuf_remaining(out) - 1 : 0);
22 void prt_printf(struct printbuf *out, const char *fmt, ...)
27 prt_vprintf(out, fmt, args);
31 void prt_u64(struct printbuf *out, u64 v)
33 prt_printf(out, "%llu", v);