From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6Npu-0004qI-FG for qemu-devel@nongnu.org; Mon, 05 Aug 2013 12:40:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V6Npb-0000ES-NC for qemu-devel@nongnu.org; Mon, 05 Aug 2013 12:40:46 -0400 Received: from mail-gh0-x231.google.com ([2607:f8b0:4002:c05::231]:57181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6Npb-0000EH-8r for qemu-devel@nongnu.org; Mon, 05 Aug 2013 12:40:27 -0400 Received: by mail-gh0-f177.google.com with SMTP id f20so1307365ghb.22 for ; Mon, 05 Aug 2013 09:40:26 -0700 (PDT) Sender: Richard Henderson Message-ID: <51FFD576.2020207@twiddle.net> Date: Mon, 05 Aug 2013 06:40:22 -1000 From: Richard Henderson MIME-Version: 1.0 References: <1375700771-21665-1-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1375700771-21665-1-git-send-email-peter.maydell@linaro.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] target-arm: Implement 'int' loglevel List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-devel@nongnu.org, patches@linaro.org On 08/05/2013 01:06 AM, Peter Maydell wrote: > + const char *exc = NULL; > + > + if (idx >= 0 && idx < ARRAY_SIZE(excnames)) { > + exc = excnames[idx]; > + } > + if (!exc) { > + exc = "unknown"; > + } Gah. Nevermind that last comment, I knew it was wrong the instant after I pressed send. Brain needs more coffee applied... r~