From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJfGa-0002Xs-T0 for qemu-devel@nongnu.org; Tue, 28 Nov 2017 07:45:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJfGX-0004bH-R0 for qemu-devel@nongnu.org; Tue, 28 Nov 2017 07:45:36 -0500 Date: Tue, 28 Nov 2017 13:45:28 +0100 From: Cornelia Huck Message-ID: <20171128134528.699488bf.cohuck@redhat.com> In-Reply-To: References: <1511816136-30068-1-git-send-email-walling@linux.vnet.ibm.com> <1511816136-30068-5-git-send-email-walling@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [qemu-s390x] [PATCH v1 4/5] s390-ccw: interactive boot menu for eckd dasd List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth Cc: "Collin L. Walling" , borntraeger@de.ibm.com, frankja@linux.vnet.ibm.com, qemu-s390x@nongnu.org, qemu-devel@nongnu.org On Tue, 28 Nov 2017 13:36:38 +0100 Thomas Huth wrote: > On 27.11.2017 21:55, Collin L. Walling wrote: > > +static int zipl_boot_menu(block_number_t s1b_block_nr) > > +{ > > + void *stage2_data, *menu_offset; > > + > > + read_stage2(s1b_block_nr, &stage2_data); > > + menu_offset = stage2_data; > > + > > + /* Menu banner starts with "zIPL" */ > > + while (menu_offset < stage2_data + STAGE2_MAX_SIZE - 4) { > > + if (magic_match(menu_offset, ZIPL_MAGIC_EBCDIC)) { > > + return menu_get_zipl_boot_index(menu_offset); > > + } > > + menu_offset++; > > + } > > + > > + panic("\n! No menu data found !\n"); > > Maybe remove the initial exclamation mark? It does match the other panics in the code, though. > > > + /* should not reach here */ > > + return 0; > > +}