From: "Jan Beulich" Subject: Re: [PATCH V4 12/15] Add efi_arch_use_config_file() function to control use of config file Date: Thu, 11 Sep 2014 15:49:57 +0100 Message-ID: <5411D2B50200007800033FBE@mail.emea.novell.com> References: <1410310325-4509-1-git-send-email-roy.franz@linaro.org> <1410310325-4509-13-git-send-email-roy.franz@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1410310325-4509-13-git-send-email-roy.franz@linaro.org> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Roy Franz Cc: keir@xen.org, ian.campbell@citrix.com, tim@xen.org, xen-devel@lists.xen.org, stefano.stabellini@citrix.com, fu.wei@linaro.org List-Id: xen-devel@lists.xenproject.org >>> On 10.09.14 at 02:52, wrote: > - cols = rows = depth = 0; > - if ( !base_video ) > - { > - name.cs = get_value(&cfg, section.s, "video"); > - if ( !name.cs ) > - name.cs = get_value(&cfg, "global", "video"); > - if ( name.cs && !strncmp(name.cs, "gfx-", 4) ) > + cols = rows = depth = 0; > + if ( !base_video ) > { > - cols = simple_strtoul(name.cs + 4, &name.cs, 10); > - if ( *name.cs == 'x' ) > - rows = simple_strtoul(name.cs + 1, &name.cs, 10); > - if ( *name.cs == 'x' ) > - depth = simple_strtoul(name.cs + 1, &name.cs, 10); > - if ( *name.cs ) > - cols = rows = depth = 0; > + name.cs = get_value(&cfg, section.s, "video"); > + if ( !name.cs ) > + name.cs = get_value(&cfg, "global", "video"); > + if ( name.cs && !strncmp(name.cs, "gfx-", 4) ) > + { > + cols = simple_strtoul(name.cs + 4, &name.cs, 10); > + if ( *name.cs == 'x' ) > + rows = simple_strtoul(name.cs + 1, &name.cs, 10); > + if ( *name.cs == 'x' ) > + depth = simple_strtoul(name.cs + 1, &name.cs, 10); > + if ( *name.cs ) > + cols = rows = depth = 0; > + } So how is this video mode selection being represented then without config file? Don't you need to at least add a command line option for that? Jan