[libvirt] [PATCH] virBuffer: add way to trim back extra text