]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libvirt: virsh: Kill all uses of __FUNCTION__ in error messages
authorNoella Ashu <ashu.noella207@gmail.com>
Fri, 3 Apr 2015 10:33:44 +0000 (11:33 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 3 Apr 2015 12:02:54 +0000 (14:02 +0200)
commitc4db8c5ee3e7bc4559ccde83587ff5318e115865
treed89fe72c4210fe947a370f5b97d77a2b28a5d383
parent156fde0b1a7d9421403401b837152990a900c88b
libvirt: virsh: Kill all uses of __FUNCTION__ in error messages

The error output of snapshot-revert should be more friendly.
There is no need to show virDomainRevertToSnapshot to user.
virReportError already includes __FUNCTION__ information in a
separate member of the struct, so repeating it in the message is
redundant and leads to situations where higher level code ends up
reporting the lower level name. We correctly converted the error
output making it more succinct and user-friendly.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1086726
src/libvirt-domain-snapshot.c
src/libvirt-domain.c