grub-devel
[Top][All Lists]
Advanced

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

Re: PC partitions and big disks


From: Robert Millan
Subject: Re: PC partitions and big disks
Date: Mon, 5 Nov 2007 17:26:31 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

On Mon, Nov 05, 2007 at 04:17:50PM +0100, Robert Millan wrote:
>  
>  void
> +grub_util_warn (const char *fmt, ...)
> +{
> +  va_list ap;
> +      
> +  fprintf (stderr, "%s: warning: ", progname);
> +  va_start (ap, fmt);
> +  vfprintf (stderr, fmt, ap);
> +  va_end (ap);
> +  fputc ('\n', stderr);
> +  fflush (stderr);
> +}
> +

Ah, this addition is because I needed a way to print a warning unconditionaly,
which we don't currently have (_error does that but aborts, _info only prints
in verbose mode).

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)




reply via email to

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