mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 13:17:58 +03:00
virNetDevSetVfMac: Fix error message on invalid args
If virNetDevSetVfMac() is called with either @macaddr or @allowRetry arguments NULL an error is reported, because this is considered invalid use. However, the error message is not informative as it could be. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
0236e6154c
commit
7899a11523
@ -1642,7 +1642,9 @@ virNetDevSetVfMac(const char *ifname, int vf,
|
||||
};
|
||||
|
||||
if (macaddr == NULL || allowRetry == NULL) {
|
||||
virReportError(EINVAL, "%s", _("Invalid parameters: %d"));
|
||||
virReportError(EINVAL,
|
||||
_("Invalid parameters macaddr=%p allowRetry=%p"),
|
||||
macaddr, allowRetry);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user