]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nodedev: add macro to handle command errors
authorJonathon Jongsma <jjongsma@redhat.com>
Tue, 22 Jun 2021 19:53:34 +0000 (14:53 -0500)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 1 Jul 2021 14:34:03 +0000 (16:34 +0200)
commit5cf6f18d5daf1b995ac41fc1ed5feace83ae51cf
treeab04ece086c88a8416df14ac97c38ad51dd3f2fe
parent2a615af38fdcde269229bc57f1ded8209f0b5b7e
nodedev: add macro to handle command errors

This macro will be utilized in the following patch. Since mdevctl
commands can fail with or without an error message, this macro makes it
easy to print a fallback error in the case that the error message is not
set.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
src/node_device/node_device_driver.c