On Fri, Nov 11, 2011 at 07:57:02PM +0800, Osier Yang wrote: > --- > include/libvirt/virterror.h | 1 + > src/driver.h | 1 + > src/util/virterror.c | 3 +++ > 3 files changed, 5 insertions(+), 0 deletions(-) > > diff --git a/include/libvirt/virterror.h b/include/libvirt/virterror.h > index a8549b7..deda42d 100644 > --- a/include/libvirt/virterror.h > +++ b/include/libvirt/virterror.h > @@ -84,6 +84,7 @@ typedef enum { > VIR_FROM_LIBXL = 41, /* Error from libxenlight driver */ > VIR_FROM_LOCKING = 42, /* Error from lock manager */ > VIR_FROM_HYPERV = 43, /* Error from Hyper-V driver */ > + VIR_FROM_KVMTOOL = 44, /* Error from kvm tool driver */ > } virErrorDomain; > > > diff --git a/src/driver.h b/src/driver.h > index 4c14aaa..158a13c 100644 > --- a/src/driver.h > +++ b/src/driver.h > @@ -30,6 +30,7 @@ typedef enum { > VIR_DRV_VMWARE = 13, > VIR_DRV_LIBXL = 14, > VIR_DRV_HYPERV = 15, > + VIR_DRV_KVMTOOL = 16, > } virDrvNo; > > > diff --git a/src/util/virterror.c b/src/util/virterror.c > index 5006fa2..abb5b5a 100644 > --- a/src/util/virterror.c > +++ b/src/util/virterror.c > @@ -175,6 +175,9 @@ static const char *virErrorDomainName(virErrorDomain domain) { > case VIR_FROM_HYPERV: > dom = "Hyper-V "; > break; > + case VIR_FROM_KVMTOOL: > + dom = "KVMTOOL "; > + break; > } > return(dom); > } Trivial, ACK Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :| -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html