2009-05-04 Robert Millan <rmh.grub@aybabtu.com>

* util/misc.c (grub_util_warn): New function.  Emmits a warning
        unconditionally.
        * include/grub/util/misc.h (grub_util_warn): New declaration.

        * util/i386/pc/grub-install.in: Understand --force and pass it down
        to grub-setup.

        * util/i386/pc/grub-setup.c (main): Understand --force and pass it
        down to setup().
        (setup): Improve error messages and add warnings when requested to
        install in odd layouts.  Refuse to install using blocklists unless
        --force was set.
This commit is contained in:
robertmh 2009-05-04 16:16:03 +00:00
parent c149b50021
commit ae0c0bdca9
5 changed files with 68 additions and 15 deletions

View file

@ -51,6 +51,19 @@
char *progname = 0;
int verbosity = 0;
void
grub_util_warn (const char *fmt, ...)
{
va_list ap;
fprintf (stderr, "%s: warn: ", progname);
va_start (ap, fmt);
vfprintf (stderr, fmt, ap);
va_end (ap);
fputc ('\n', stderr);
fflush (stderr);
}
void
grub_util_info (const char *fmt, ...)
{