bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: preliminary patch for initrd support in Mach


From: Jeremie Koenig
Subject: Re: preliminary patch for initrd support in Mach
Date: Tue, 3 Aug 2010 19:16:25 -0400
User-agent: Mutt/1.5.20 (2009-06-14)

Hi,

On Sat, Jul 31, 2010 at 04:49:08PM +0200, Samuel Thibault wrote:
> Jérémie Koenig, le Sat 12 Jun 2010 19:05:20 +0200, a écrit :
> > @@ -128,7 +129,7 @@
> >      }
> >    else
> >      {
> > -      int i, losers, maxlen;
> > +      int i, losers;
> >  
> >        /* Initialize boot script variables.  We leak these send rights.  */
> >        losers = boot_script_set_variable
> > @@ -219,23 +220,19 @@
> >        }
> >  #endif
> >  
> > -      maxlen = 0;
> >        for (i = 0; i < boot_info.mods_count; ++i)
> >     {
> >       int err;
> >       char *line = (char*)phystokv(bmods[i].string);
> > -     int len = strlen (line) + 1;
> > -     if (len > maxlen)
> > -       maxlen = len;
> > -     printf ("\rmodule %d: %*s", i, -maxlen, line);
> > +     printf ("module %d: %s\n", i, line);
> >       err = boot_script_parse_line (&bmods[i], line);
> >       if (err)
> >         {
> > -         printf ("\n\tERROR: %s", boot_script_error_string (err));
> > +         printf ("\tERROR: %s\n", boot_script_error_string (err));
> >           ++losers;
> >         }
> >     }
> > -      printf ("\r%d multiboot modules %*s", i, -maxlen, "");
> > +      printf ("%d multiboot modules\n", i);
> >        if (losers)
> >     panic ("%d of %d boot script commands could not be parsed",
> >            losers, boot_info.mods_count);
> 
> These seem unrelated, right?  I guess they should be submitted and
> commited upstream separately.

If I remember correctly they're actually kindof related, because I needed those
for the ramdisk message to be displayed correctly.

> I have commited the patch, without the change above, in the Debian
> package.

Okay, thanks!

-- 
Jérémie Koenig <jk@jk.fr.eu.org>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]