Received: from [140.186.70.92] (port=54671 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8nUu-0005Oi-VL for qemu-devel@nongnu.org; Thu, 21 Oct 2010 01:15:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8nUt-0004Cy-Tc for qemu-devel@nongnu.org; Thu, 21 Oct 2010 01:15:28 -0400 Received: from mail.valinux.co.jp ([210.128.90.3]:51897) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8nUt-0004Cn-Ko for qemu-devel@nongnu.org; Thu, 21 Oct 2010 01:15:27 -0400 Date: Thu, 21 Oct 2010 14:15:24 +0900 From: Isaku Yamahata Message-ID: <20101021051524.GB31309@valinux.co.jp> References: <20101020095616.GD10783@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101020095616.GD10783@redhat.com> Subject: [Qemu-devel] Re: [PATCH v6 08/12] pcie/aer: helper functions for pcie aer capability List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: skandasa@cisco.com, adnan@khaleel.us, etmartin@cisco.com, qemu-devel@nongnu.org, wexu2@cisco.com Thank you for detailed review. On Wed, Oct 20, 2010 at 11:56:16AM +0200, Michael S. Tsirkin wrote: > > +static uint32_t aer_log_del(PCIEAERLog *aer_log) > > +{ > > + uint32_t i = aer_log->consumer; > > + aer_log->consumer = aer_log_next(aer_log->consumer, aer_log->log_max); > > + return i; > > +} > > > Please just use 'int' or 'unsigned' instead of uint32_t if you simply > want to say 'a number'. Using specific length makes it impossible to > say where you *really* want a value. PCIEAERLog is saved/loaded. So explicit sized number is chosen. -- yamahata