Skip to contentSkip to conversation

Usage of qemu_error withing shared object

Qemu-devel Naphtali Sprei 2 participants 2 messages Oct 28, 2009

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 3 lines · Naphtali Sprei

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 ?

There was no need yet ...

A simple qemu_error() implementation for the tools which writes to stderr unconditionally should do the trick.

cheers,
Gerd