Lines Matching refs:sbuf
210 static int __printf(2, 3) append(struct strbuf *sbuf, const char *fmt, ...) in append() argument
216 if (sbuf->ptr == NULL) in append()
217 sbuf->ptr = sbuf->buf; in append()
218 left = sizeof(sbuf->buf) - (sbuf->ptr - sbuf->buf); in append()
220 len = vsnprintk(sbuf->ptr, left, fmt, ap); in append()
230 sbuf->ptr += MIN(left, len); in append()
239 struct strbuf sbuf; in dhex_dump() local
243 sbuf.ptr = NULL; in dhex_dump()
246 ok = append(&sbuf, "%0*" PRIxVA " ", in dhex_dump()
251 ok = append(&sbuf, "%02x ", in[i]); in dhex_dump()
255 ok = append(&sbuf, " "); in dhex_dump()
260 sbuf.buf); in dhex_dump()
261 sbuf.ptr = NULL; in dhex_dump()
264 if (sbuf.ptr) { in dhex_dump()
267 sbuf.buf); in dhex_dump()