All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Coding style for errors
@ 2015-10-21 15:03 Lluís Vilanova
  2015-10-21 15:14 ` Eric Blake
  2015-10-21 16:48 ` Markus Armbruster
  0 siblings, 2 replies; 12+ messages in thread
From: Lluís Vilanova @ 2015-10-21 15:03 UTC (permalink / raw)
  To: qemu-devel

Hi,

I was wondering what is the proper way (or ways, depending on the subsystem) of
reporting and signalling errors in QEMU. The coding style file does not seem to
mention it, and the code uses all kinds of forms for that:

* printf + exit(1)
* fprintf(stderr) + exit(1)
* error_report + exit(1)
* cpu_abort
* Some other I probably forgot

So, is there any agreement on what should be used? If so, could that please be
added to CODING_STYLE?


Thanks,
  Lluis

-- 
"And it's much the same thing with knowledge, for whenever you learn
something new, the whole world becomes that much richer."
-- The Princess of Pure Reason, as told by Norton Juster in The Phantom
Tollbooth

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

end of thread, other threads:[~2015-10-28 16:44 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-21 15:03 [Qemu-devel] Coding style for errors Lluís Vilanova
2015-10-21 15:14 ` Eric Blake
2015-10-21 19:41   ` Lluís Vilanova
2015-10-21 16:48 ` Markus Armbruster
2015-10-21 20:16   ` Peter Maydell
2015-10-22 13:30   ` Lluís Vilanova
2015-10-23 16:01     ` Stefan Hajnoczi
2015-10-23 16:12       ` Laszlo Ersek
2015-10-23 17:02       ` Dr. David Alan Gilbert
2015-10-28 16:44         ` Thomas Huth
2015-10-23 17:34       ` Lluís Vilanova
2015-10-26 11:39         ` Stefan Hajnoczi

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.