[libvirt] [PATCH] logging: fix off-by-one bug