Usage of qemu_error withing shared object
Hi,
I've added a call to qemu_error in block.c file, and got a link error on the qemu-utilities: qemu-img, qemu-nbd and qemu-io. Should there be a stub that implements a qemu_error to be linked with those apps ? Am I missing something ?
In my case, I couldn't let the caller report the error (and avoid calling qemu_error in block.c) since caller don't have enough information for proper error message.
Naphtali
Quoted 3 lines · Naphtali Sprei
Hi,
I've added a call toqemu_errorinblock.cfile, and got a link error on the qemu-utilities: qemu-img, qemu-nbd and qemu-io. Should there be a stub that implements aqemu_errorto be linked with those apps ? Am I missing something ?
There was no need yet ...
A simple qemu_error() implementation for the tools which writes to stderr unconditionally should do the trick.
cheers,
Gerd