Tue Nov 20 10:49:28 UTC 2007 Richard W.M. Jones <rjones@redhat.com>

* src/virterror.c, src/stats_linux.c, include/libvirt/virterror.h:
	  Renamed the VIR_FROM_LINUX error as VIR_FROM_STATS_LINUX for
	  consistency.
This commit is contained in:
Richard W.M. Jones 2007-11-20 10:58:21 +00:00
parent aab34d876e
commit 4ef3a4ea7c
4 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,9 @@
Tue Nov 20 10:49:28 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
* src/virterror.c, src/stats_linux.c, include/libvirt/virterror.h:
Renamed the VIR_FROM_LINUX error as VIR_FROM_STATS_LINUX for
consistency.
Tue Nov 20 11:06:28 CET 2007 Daniel Veillard <veillard@redhat.com>
* include/libvirt/virterror.h src/openvz_conf.c src/openvz_driver.c

View File

@ -53,7 +53,7 @@ typedef enum {
VIR_FROM_REMOTE, /* Error from remote driver */
VIR_FROM_OPENVZ, /* Error from OpenVZ driver */
VIR_FROM_XENXM, /* Error at Xen XM layer */
VIR_FROM_LINUX, /* Error in the Linux Stats code */
VIR_FROM_STATS_LINUX, /* Error in the Linux Stats code */
} virErrorDomain;

View File

@ -51,7 +51,8 @@ statsErrorFunc (virConnectPtr conn,
fullinfo[sizeof (fullinfo) - 1] = 0;
info = fullinfo;
}
__virRaiseError(conn, NULL, NULL, VIR_FROM_LINUX, error, VIR_ERR_ERROR,
__virRaiseError(conn, NULL, NULL, VIR_FROM_STATS_LINUX, error,
VIR_ERR_ERROR,
errmsg, info, NULL, value, 0, errmsg, info,
value);
}

View File

@ -295,7 +295,7 @@ virDefaultErrorFunc(virErrorPtr err)
case VIR_FROM_XENXM:
dom = "Xen XM ";
break;
case VIR_FROM_LINUX:
case VIR_FROM_STATS_LINUX:
dom = "Linux Stats ";
break;