virsh: Refactor event printing
virsh: Refactor event printing

To reduce code duplication.

Signed-off-by: Jiri Denemark <62bdf77dc47919a4d59a91822129d14633cfca81@redhat.com>

olafhering/libvirt,rlaager/libvirt,VenkatDatta/libvirt,eskultety/libvirt,libvirt/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,eskultety/libvirt,rlaager/libvirt,andreabolognani/libvirt,rlaager/libvirt,nertpinx/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,taget/libvirt,taget/libvirt,crobinso/libvirt,olafhering/libvirt,libvirt/libvirt,fabianfreyer/libvirt,eskultety/libvirt,VenkatDatta/libvirt,jardasgit/libvirt,taget/libvirt,nertpinx/libvirt,rlaager/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,olafhering/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,VenkatDatta/libvirt,taget/libvirt,nertpinx/libvirt,datto/libvirt,VenkatDatta/libvirt,nertpinx/libvirt,jardasgit/libvirt,crobinso/libvirt,nertpinx/libvirt,rlaager/libvirt,zippy2/libvirt,libvirt/libvirt,crobinso/libvirt,zippy2/libvirt,eskultety/libvirt,datto/libvirt,taget/libvirt,crobinso/libvirt,jardasgit/libvirt,andreabolognani/libvirt,eskultety/libvirt,datto/libvirt,datto/libvirt,jardasgit/libvirt,datto/libvirt,VenkatDatta/libvirt,andreabolognani/libvirt,olafhering/libvirt,zippy2/libvirt,jfehlig/libvirt,zippy2/libvirt,jfehlig/libvirt,libvirt/libvirt