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 /.) _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel