Re: efibootmgr fixes for EFI 1.10

From: Alex Williamson <alex.williamson_at_hp.com>
Date: 2005-03-02 10:57:26
On Wed, 2005-03-02 at 00:51 +0100, Andreas Schwab wrote:
> Alex Williamson <alex.williamson@hp.com> writes:
> 
> > @@ -215,8 +217,9 @@
> >  			boot->var_data.Data;
> >  		if (!efichar_char_strcmp(opts.label,
> >  					 load_option->description)) {
> > -			fprintf(stderr, "** Warning ** : Boot%04x has same label %s\n",
> > -			       boot->num,
> > +			snprintf(name, 9, "%s", boot->name->d_name);
> > +			fprintf(stderr, "** Warning ** : %s has same label %s\n",
> > +			       name,
> 
> What's wrong with using boot->name->d_name directly?

   Then you get something like this printed:

** Warning ** : BootFFFF-8be4df61-93ca-11d2-aa0d-00e098032b8c has same label Linux

Seemed like too much information.  Thanks,

	Alex
-- 
Alex Williamson                             HP Linux & Open Source Lab

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Tue Mar 1 18:58:00 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:36 EST