qemuDomainLookupByUUID: print correct UUID string on failed lookup.

Currently we print the raw UUID which isn't very useful in ascii format.
This commit is contained in:
Cole Robinson 2009-05-29 14:01:55 +00:00
parent 58c73c1789
commit 4ff19ced3a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Fri May 29 10:01:19 EDT 2009 Cole Robinson <crobinso@redhat.com>
* src/qemu_driver.c : qemuDomainLookupByUUID: print correct UUID
string on failed lookup.
Fri May 29 10:00:01 EDT 2009 Cole Robinson <crobinso@redhat.com> Fri May 29 10:00:01 EDT 2009 Cole Robinson <crobinso@redhat.com>
* src/virsh.c : virsh: Use consistent spacing for net-list * src/virsh.c : virsh: Use consistent spacing for net-list

View File

@ -2043,7 +2043,7 @@ static virDomainPtr qemudDomainLookupByUUID(virConnectPtr conn,
char uuidstr[VIR_UUID_STRING_BUFLEN]; char uuidstr[VIR_UUID_STRING_BUFLEN];
virUUIDFormat(uuid, uuidstr); virUUIDFormat(uuid, uuidstr);
qemudReportError(conn, NULL, NULL, VIR_ERR_NO_DOMAIN, qemudReportError(conn, NULL, NULL, VIR_ERR_NO_DOMAIN,
_("no domain with matching uuid '%s'"), uuid); _("no domain with matching uuid '%s'"), uuidstr);
goto cleanup; goto cleanup;
} }