/* tipc_printbuf_reset - reinitialize print buffer to empty state @pb: pointer to print buffer structure  */
void tipc_printbuf_reset(struct print_buf *pb)
/* tipc_printbuf_reset - reinitialize print buffer to empty state @pb: pointer to print buffer structure  */
void tipc_printbuf_reset(struct print_buf *pb)
{
	if (pb->buf) {
		pb->crs = pb->buf;
		pb->buf[0] = 0;
		pb->buf[pb->size - 1] = ~0;
	}
}