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

« back to all changes in this revision

Viewing changes to partmap/gpt.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:
162
162
static char *
163
163
gpt_partition_map_get_name (const grub_partition_t p)
164
164
{
165
 
  char *name;
166
 
 
167
 
  name = grub_malloc (13);
168
 
  if (! name)
169
 
    return 0;
170
 
 
171
 
  grub_sprintf (name, "%d", p->index + 1);
172
 
  return name;
 
165
  return grub_xasprintf ("%d", p->index + 1);
173
166
}
174
167
 
175
168