From: Kevin O'Connor Subject: Re: [PATCHv4 15/15] Pass boot device list to firmware. Date: Sun, 14 Nov 2010 22:40:33 -0500 Message-ID: <20101115034033.GA1309@morn.localdomain> References: <1289749181-12070-1-git-send-email-gleb@redhat.com> <1289749181-12070-16-git-send-email-gleb@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org, blauwirbel@gmail.com, armbru@redhat.com, alex.williamson@redhat.com, mst@redhat.com To: Gleb Natapov Return-path: Received: from mail-qw0-f46.google.com ([209.85.216.46]:49072 "EHLO mail-qw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751901Ab0KODkh (ORCPT ); Sun, 14 Nov 2010 22:40:37 -0500 Received: by qwi4 with SMTP id 4so166715qwi.19 for ; Sun, 14 Nov 2010 19:40:36 -0800 (PST) Content-Disposition: inline In-Reply-To: <1289749181-12070-16-git-send-email-gleb@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Sun, Nov 14, 2010 at 05:39:41PM +0200, Gleb Natapov wrote: > +/* > + * This function returns device list as an array in a below format: > + * +-----+-----+---------------+-----+---------------+-- > + * | n | l1 | devpath1 | l2 | devpath2 | ... > + * +-----+-----+---------------+-----+---------------+-- > + * where: > + * n - a number of devise pathes (one byte) > + * l - length of following device path string (one byte) > + * devpath - non-null terminated string of length l representing > + * one device path > + */ Why not just return a newline separated list that is null terminated? -Kevin