
# HG changeset patch # User Richard Maciel <rmaciel@linux.vnet.ibm.com> # Date 1235768867 10800 # Node ID b4e20e3062bfca3bdebfd8b74920733927193665 # Parent 0eb7481830366f10b777b949425e228200935a51 This patch exposes error messages from libvirt calls in Virt_RASD.c Signed-off-by: Richard Maciel <rmaciel@linux.vnet.ibm.com> diff -r 0eb748183036 -r b4e20e3062bf src/Virt_RASD.c --- a/src/Virt_RASD.c Fri Feb 27 18:07:42 2009 -0300 +++ b/src/Virt_RASD.c Fri Feb 27 18:07:47 2009 -0300 @@ -115,9 +115,11 @@ dom = virDomainLookupByName(conn, domain); if (dom == NULL) { - cu_statusf(broker, &s, - CMPI_RC_ERR_NOT_FOUND, - "Domain `%s' not found while getting info", domain); + virt_set_status(broker, &s, + CMPI_RC_ERR_NOT_FOUND, + conn, + "Domain `%s' not found while getting info", + domain); goto out; } @@ -451,10 +453,11 @@ dev = find_dev(conn, type, host, devid); if (!dev) { - cu_statusf(broker, &s, - CMPI_RC_ERR_NOT_FOUND, - "No such instance (%s)", - name); + virt_set_status(broker, &s, + CMPI_RC_ERR_NOT_FOUND, + conn, + "No such instance (%s)", + name); goto out; }