]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Improve error reporting for virConnectGetHostname calls
authorCole Robinson <crobinso@redhat.com>
Fri, 23 Oct 2009 17:01:22 +0000 (13:01 -0400)
committerCole Robinson <crobinso@redhat.com>
Tue, 3 Nov 2009 21:46:54 +0000 (16:46 -0500)
commit517761fd963d8af075a603c7fa3cedadecd3fdf2
treeaa82fe606833d83a79e862e46598bf47d7316fff
parentaf1e2ede261c0f9bf9ef0c09d6e73aefed2bed78
Improve error reporting for virConnectGetHostname calls

All drivers have copy + pasted inadequate error reporting which wraps
util.c:virGetHostname. Move all error reporting to this function, and improve
what we report.

Changes from v1:
  Drop the driver wrappers around virGetHostname. This means we still need
  to keep the new conn argument to virGetHostname, but I think it's worth
  it.
daemon/libvirtd.c
src/lxc/lxc_driver.c
src/qemu/qemu_driver.c
src/test/test_driver.c
src/uml/uml_driver.c
src/util/util.c
src/util/util.h
src/vbox/vbox_tmpl.c
src/xen/xen_driver.c
src/xen/xend_internal.c
tools/virsh.c