~ubuntu-branches/ubuntu/wily/grub2/wily-proposed

« back to all changes in this revision

Viewing changes to util/grub-emu.c

  • Committer: Bazaar Package Importer
  • Author(s): Felix Zielcke, Robert Millan, Felix Zielcke
  • Date: 2010-01-26 19:26:25 UTC
  • mfrom: (1.13.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100126192625-coq6czap2ofjollf
Tags: 1.98~20100126-1
* New Bazaar snapshot.
  - Includes mipsel-yeeloong port.

[ Robert Millan ]
* config.in: Lower priority of grub2/linux_cmdline_default.

[ Felix Zielcke ]
* Drop `CFLAGS=-O0' workaround on powerpc. Should be fixed correctly now.
* Ship grub-bin2h and grub-script-check in grub-common.
* Terminate NEWS.Debian with a blank line like lintian would suggest
  if that check would be working correctly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
{
130
130
  if (status)
131
131
    fprintf (stderr,
132
 
             "Try ``grub-emu --help'' for more information.\n");
 
132
             "Try `%s --help' for more information.\n", program_name);
133
133
  else
134
134
    printf (
135
 
      "Usage: grub-emu [OPTION]...\n"
 
135
      "Usage: %s [OPTION]...\n"
136
136
      "\n"
137
137
      "GRUB emulator.\n"
138
138
      "\n"
144
144
      "  -h, --help                display this message and exit\n"
145
145
      "  -V, --version             print version information and exit\n"
146
146
      "\n"
147
 
      "Report bugs to <%s>.\n", DEFAULT_DEVICE_MAP, DEFAULT_DIRECTORY, PACKAGE_BUGREPORT);
 
147
      "Report bugs to <%s>.\n", program_name, DEFAULT_DEVICE_MAP, DEFAULT_DIRECTORY, PACKAGE_BUGREPORT);
148
148
  return status;
149
149
}
150
150
 
220
220
    {
221
221
      char *device_name = grub_guess_root_device (dir);
222
222
      if (! device_name)
223
 
        grub_util_error ("cannot find a device for %s.\n", dir);
 
223
        grub_util_error ("cannot find a device for %s", dir);
224
224
 
225
225
      root_dev = grub_util_get_grub_dev (device_name);
226
226
      if (! root_dev)
227
227
        {
228
228
          grub_util_info ("guessing the root device failed, because of `%s'",
229
229
                          grub_errmsg);
230
 
          grub_util_error ("Cannot guess the root device. Specify the option ``--root-device''.");
 
230
          grub_util_error ("cannot guess the root device. Specify the option `--root-device'");
231
231
        }
232
232
    }
233
233