All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] error reporting in functions
@ 2016-10-12 15:47 Vladimir Sementsov-Ogievskiy
  2016-10-12 20:55 ` Eric Blake
  0 siblings, 1 reply; 3+ messages in thread
From: Vladimir Sementsov-Ogievskiy @ 2016-10-12 15:47 UTC (permalink / raw)
  To: qemu-devel

HI all!

My questions is: what are general recommendations in Qemu for return 
code, if we have Error **errp?
What should I prefer: errp, duplicated by int return code, or void 
functions with errp?

void + errp seems good, just to not duplicate things. But it has a 
disadvantage of necessity of "local_err" and "error_propagate" in caller 
function, if its behaviour depends on callee function success...

-- 
Best regards,
Vladimir

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-10-13  6:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-12 15:47 [Qemu-devel] error reporting in functions Vladimir Sementsov-Ogievskiy
2016-10-12 20:55 ` Eric Blake
2016-10-13  6:39   ` Markus Armbruster

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.