~ubuntu-branches/debian/stretch/grub2/stretch

« back to all changes in this revision

Viewing changes to kern/i386/pc/init.c

Tags: upstream-1.98+20100705
ImportĀ upstreamĀ versionĀ 1.98+20100705

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
      grub_snprintf (ptr, sizeof (dev) - (ptr - dev), ")%s", grub_prefix);
84
84
      grub_strcpy (grub_prefix, dev);
85
85
    }
 
86
  else if (grub_prefix[1] == ',' || grub_prefix[1] == ')')
 
87
    {
 
88
      /* We have a prefix, but still need to fill in the boot drive.  */
 
89
      grub_snprintf (dev, sizeof (dev),
 
90
                     "(%cd%u%s", (grub_boot_drive & 0x80) ? 'h' : 'f',
 
91
                     grub_boot_drive & 0x7f, grub_prefix + 1);
 
92
      grub_strcpy (grub_prefix, dev);
 
93
    }
86
94
 
87
95
  return grub_prefix;
88
96
}