Received: from eggs.gnu.org ([2001:4830:134:3::10]:41747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZouvT-0004ya-E5 for qemu-devel@nongnu.org; Wed, 21 Oct 2015 11:03:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZouvN-0001Hy-Lh for qemu-devel@nongnu.org; Wed, 21 Oct 2015 11:03:39 -0400 Received: from roura.ac.upc.es ([147.83.33.10]:41905) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZouvN-0001HY-B2 for qemu-devel@nongnu.org; Wed, 21 Oct 2015 11:03:33 -0400 Received: from gw-3.ac.upc.es (gw-3.ac.upc.es [147.83.30.9]) by roura.ac.upc.es (8.13.8/8.13.8) with ESMTP id t9LDEj07020608 for ; Wed, 21 Oct 2015 15:14:45 +0200 Received: from localhost (unknown [84.88.51.85]) by gw-3.ac.upc.es (Postfix) with ESMTPSA id EB3FB71F for ; Wed, 21 Oct 2015 17:03:30 +0200 (CEST) From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= Date: Wed, 21 Oct 2015 17:03:30 +0200 Message-ID: <8737x4p8l9.fsf@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] Coding style for errors List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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