Received: from eggs.gnu.org ([2001:4830:134:3::10]:43150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1esvEI-0006Ul-EY for qemu-devel@nongnu.org; Mon, 05 Mar 2018 13:52:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1esvEE-0003yM-FN for qemu-devel@nongnu.org; Mon, 05 Mar 2018 13:52:58 -0500 Received: from smtp.citrix.com ([66.165.176.89]:31276) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1esvEE-0003y4-9G for qemu-devel@nongnu.org; Mon, 05 Mar 2018 13:52:54 -0500 Date: Mon, 5 Mar 2018 18:52:51 +0000 From: Anthony PERARD Message-ID: <20180305185251.GB1921@perard.uk.xensource.com> References: <20180305112732.26471-1-f4bug@amsat.org> <20180305112732.26471-23-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180305112732.26471-23-f4bug@amsat.org> Subject: Re: [Qemu-devel] [PATCH v2 22/30] hw/display: use the BYTE-based definitions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org, Gerd Hoffmann , "Michael S. Tsirkin" , Stefano Stabellini , "open list:X86" On Mon, Mar 05, 2018 at 08:27:24AM -0300, Philippe Mathieu-Daudé wrote: > It eases code review, unit is explicit. > > Patch generated using: > > $ git grep -E '(1024|2048|4096|8192|(<<|>>).?(10|20|30))' hw/ include/hw/ > > and modified manually. > > Signed-off-by: Philippe Mathieu-Daudé > Reviewed-by: Gerd Hoffmann > --- > hw/display/xenfb.c | 2 +- > diff --git a/hw/display/xenfb.c b/hw/display/xenfb.c > index f5afcc0358..1ae660519a 100644 > --- a/hw/display/xenfb.c > +++ b/hw/display/xenfb.c > @@ -889,7 +889,7 @@ static int fb_initialise(struct XenDevice *xendev) > return rc; > > fb_page = fb->c.page; > - rc = xenfb_configure_fb(fb, videoram * 1024 * 1024U, > + rc = xenfb_configure_fb(fb, videoram * M_BYTE, > fb_page->width, fb_page->height, fb_page->depth, > fb_page->mem_length, 0, fb_page->line_length); > if (rc != 0) Acked-by: Anthony PERARD Thanks, -- Anthony PERARD