+2009-12-25 Carles Pina i Estany <carles@pina.cat>
+
+ * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
+ `couldn't' and `can not' by `cannot'.
+ * commands/i386/pc/drivemap.c: Likewise.
+ * disk/ata.c: Likewise.
+ * disk/ieee1275/nand.c: Likewise.
+ * fs/affs.c: Likewise.
+ * fs/fat.c: Likewise.
+ * fs/hfs.c: Likewise.
+ * fs/hfsplus.c: Likewise.
+ * fs/iso9660.c: Likewise.
+ * fs/jfs.c: Likewise.
+ * fs/minix.c: Likewise.
+ * fs/reiserfs.c: Likewise.
+ * fs/sfs.c: Likewise.
+ * fs/udf.c: Likewise.
+ * fs/ufs.c: Likewise.
+ * fs/xfs.c: Likewise.
+ * loader/powerpc/ieee1275/linux.c: Likewise.
+ * loader/sparc64/ieee1275/linux.c: Likewise.
+ * util/grub-probe.c: Likewise.
+ * util/misc.c: Likewise.
+
2009-12-24 Carles Pina i Estany <carles@pina.cat>
* bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
int size;
if (argc == 0)
- return grub_error (GRUB_ERR_BAD_ARGUMENT, "no rom image specified");
+ return grub_error (GRUB_ERR_BAD_ARGUMENT, "no ROM image specified");
if (argc > 1)
{
GRUB_MACHINE_MEMORY_RESERVED,
GRUB_MMAP_MALLOC_LOW);
if (! handler_base)
- return grub_error (GRUB_ERR_OUT_OF_MEMORY, "could not reserve "
+ return grub_error (GRUB_ERR_OUT_OF_MEMORY, "couldn't reserve "
"memory for the int13h handler");
/* Copy int13h handler bundle to reserved area. */
else
/* Other Error. */
return grub_error (GRUB_ERR_UNKNOWN_DEVICE,
- "device can not be identified");
+ "device cannot be identified");
}
grub_ata_pio_read (dev, info, GRUB_DISK_SECTOR_SIZE);
|| cylinder > dev->cylinders
|| head > dev->heads)
return grub_error (GRUB_ERR_OUT_OF_RANGE,
- "sector %d can not be addressed "
+ "sector %d cannot be addressed "
"using CHS addressing", sector);
grub_ata_regset (dev, GRUB_ATA_REG_DISK, (dev->device << 4) | head);
} args;
if (! grub_strstr (name, "nand"))
- return grub_error (GRUB_ERR_UNKNOWN_DEVICE, "not a nand device");
+ return grub_error (GRUB_ERR_UNKNOWN_DEVICE, "not a NAND device");
data = grub_malloc (sizeof (*data));
if (! data)
/* Make sure this is an affs filesystem. */
if (grub_strncmp ((char *) (data->bblock.type), "DOS", 3))
{
- grub_error (GRUB_ERR_BAD_FS, "not an affs filesystem");
+ grub_error (GRUB_ERR_BAD_FS, "not an AFFS filesystem");
goto fail;
}
/* Test if the filesystem is a OFS filesystem. */
if (! (data->bblock.flags & GRUB_AFFS_FLAG_FFS))
{
- grub_error (GRUB_ERR_BAD_FS, "ofs not yet supported");
+ grub_error (GRUB_ERR_BAD_FS, "OFS not yet supported");
goto fail;
}
}
if (-checksum != checksumr)
{
- grub_error (GRUB_ERR_BAD_FS, "affs blocksize could not be determined");
+ grub_error (GRUB_ERR_BAD_FS, "AFFS blocksize couldn't be determined");
goto fail;
}
blocksize++;
fail:
if (grub_errno == GRUB_ERR_OUT_OF_RANGE)
- grub_error (GRUB_ERR_BAD_FS, "not an affs filesystem");
+ grub_error (GRUB_ERR_BAD_FS, "not an AFFS filesystem");
grub_free (data);
grub_free (rootblock);
fail:
grub_free (data);
- grub_error (GRUB_ERR_BAD_FS, "not a fat filesystem");
+ grub_error (GRUB_ERR_BAD_FS, "not a FAT filesystem");
return 0;
}
if (grub_hfs_find_node (data, (char *) &key, data->cat_root,
0, (char *) &dir, sizeof (dir)) == 0)
{
- grub_error (GRUB_ERR_BAD_FS, "can not find the hfs root directory");
+ grub_error (GRUB_ERR_BAD_FS, "cannot find the HFS root directory");
goto fail;
}
grub_free (data);
if (grub_errno == GRUB_ERR_OUT_OF_RANGE)
- grub_error (GRUB_ERR_BAD_FS, "not a hfs filesystem");
+ grub_error (GRUB_ERR_BAD_FS, "not a HFS filesystem");
return 0;
}
fail:
if (grub_errno == GRUB_ERR_OUT_OF_RANGE)
- grub_error (GRUB_ERR_BAD_FS, "not a hfsplus filesystem");
+ grub_error (GRUB_ERR_BAD_FS, "not a HFS+ filesystem");
grub_free (data);
return 0;
sizeof (struct grub_iso9660_primary_voldesc),
(char *) &voldesc))
{
- grub_error (GRUB_ERR_BAD_FS, "not a iso9660 filesystem");
+ grub_error (GRUB_ERR_BAD_FS, "not a ISO9660 filesystem");
goto fail;
}
if (grub_strncmp ((char *) voldesc.voldesc.magic, "CD001", 5) != 0)
{
- grub_error (GRUB_ERR_BAD_FS, "not a iso9660 filesystem");
+ grub_error (GRUB_ERR_BAD_FS, "not a ISO9660 filesystem");
goto fail;
}
<< GRUB_ISO9660_LOG2_BLKSZ), 0,
sizeof (rootdir), (char *) &rootdir))
{
- grub_error (GRUB_ERR_BAD_FS, "not a iso9660 filesystem");
+ grub_error (GRUB_ERR_BAD_FS, "not a ISO9660 filesystem");
goto fail;
}
<< GRUB_ISO9660_LOG2_BLKSZ), sua_pos,
sua_size, sua))
{
- grub_error (GRUB_ERR_BAD_FS, "not a iso9660 filesystem");
+ grub_error (GRUB_ERR_BAD_FS, "not a ISO9660 filesystem");
goto fail;
}
if (grub_strncmp ((char *) (data->sblock.magic), "JFS1", 4))
{
- grub_error (GRUB_ERR_BAD_FS, "not a jfs filesystem");
+ grub_error (GRUB_ERR_BAD_FS, "not a JFS filesystem");
goto fail;
}
grub_free (data);
if (grub_errno == GRUB_ERR_OUT_OF_RANGE)
- grub_error (GRUB_ERR_BAD_FS, "not a jfs filesystem");
+ grub_error (GRUB_ERR_BAD_FS, "not a JFS filesystem");
return 0;
}
grub_jfs_find_file (data, symlink);
if (grub_errno)
- grub_error (grub_errno, "can not follow symlink `%s'", symlink);
+ grub_error (grub_errno, "cannot follow symlink `%s'", symlink);
return grub_errno;
}
grub_minix_find_file (data, symlink);
if (grub_errno)
- grub_error (grub_errno, "can not follow symlink `%s'", symlink);
+ grub_error (grub_errno, "cannot follow symlink `%s'", symlink);
return grub_errno;
}
if (grub_memcmp (data->superblock.magic_string,
REISERFS_MAGIC_STRING, sizeof (REISERFS_MAGIC_STRING) - 1))
{
- grub_error (GRUB_ERR_BAD_FS, "not a reiserfs filesystem");
+ grub_error (GRUB_ERR_BAD_FS, "not a ReiserFS filesystem");
goto fail;
}
data->disk = disk;
fail:
/* Disk is too small to contain a ReiserFS. */
if (grub_errno == GRUB_ERR_OUT_OF_RANGE)
- grub_error (GRUB_ERR_BAD_FS, "not a reiserfs filesystem");
+ grub_error (GRUB_ERR_BAD_FS, "not a ReiserFS filesystem");
grub_free (data);
return 0;
/* Make sure this is a sfs filesystem. */
if (grub_strncmp ((char *) (data->rblock.header.magic), "SFS", 4))
{
- grub_error (GRUB_ERR_BAD_FS, "not a sfs filesystem");
+ grub_error (GRUB_ERR_BAD_FS, "not a SFS filesystem");
goto fail;
}
fail:
if (grub_errno == GRUB_ERR_OUT_OF_RANGE)
- grub_error (GRUB_ERR_BAD_FS, "not an sfs filesystem");
+ grub_error (GRUB_ERR_BAD_FS, "not an SFS filesystem");
grub_free (data);
grub_free (rootobjc_data);
if (grub_disk_read (disk, block << GRUB_UDF_LOG2_BLKSZ, 0,
sizeof (struct grub_udf_vrs), &vrs))
{
- grub_error (GRUB_ERR_BAD_FS, "not an udf filesystem");
+ grub_error (GRUB_ERR_BAD_FS, "not an UDF filesystem");
goto fail;
}
(grub_memcmp (vrs.magic, GRUB_UDF_STD_IDENT_CDW02, 5)) &&
(grub_memcmp (vrs.magic, GRUB_UDF_STD_IDENT_TEA01, 5)))
{
- grub_error (GRUB_ERR_BAD_FS, "not an udf filesystem");
+ grub_error (GRUB_ERR_BAD_FS, "not an UDF filesystem");
goto fail;
}
}
if (grub_disk_read (disk, *sblklist << GRUB_UDF_LOG2_BLKSZ, 0,
sizeof (struct grub_udf_avdp), &avdp))
{
- grub_error (GRUB_ERR_BAD_FS, "not an udf filesystem");
+ grub_error (GRUB_ERR_BAD_FS, "not an UDF filesystem");
goto fail;
}
sblklist++;
if (*sblklist == 0)
{
- grub_error (GRUB_ERR_BAD_FS, "not an udf filesystem");
+ grub_error (GRUB_ERR_BAD_FS, "not an UDF filesystem");
goto fail;
}
}
if (grub_disk_read (disk, block << GRUB_UDF_LOG2_BLKSZ, 0,
sizeof (struct grub_udf_tag), &tag))
{
- grub_error (GRUB_ERR_BAD_FS, "not an udf filesystem");
+ grub_error (GRUB_ERR_BAD_FS, "not an UDF filesystem");
goto fail;
}
sizeof (struct grub_udf_pd),
&data->pds[data->npd]))
{
- grub_error (GRUB_ERR_BAD_FS, "not an udf filesystem");
+ grub_error (GRUB_ERR_BAD_FS, "not an UDF filesystem");
goto fail;
}
sizeof (struct grub_udf_lvd),
&data->lvd))
{
- grub_error (GRUB_ERR_BAD_FS, "not an udf filesystem");
+ grub_error (GRUB_ERR_BAD_FS, "not an UDF filesystem");
goto fail;
}
if (grub_disk_read (disk, block << GRUB_UDF_LOG2_BLKSZ, 0,
sizeof (struct grub_udf_fileset), &root_fs))
{
- grub_error (GRUB_ERR_BAD_FS, "not an udf filesystem");
+ grub_error (GRUB_ERR_BAD_FS, "not an UDF filesystem");
goto fail;
}
grub_ufs_find_file (data, symlink);
if (grub_errno)
- grub_error (grub_errno, "can not follow symlink `%s'", symlink);
+ grub_error (grub_errno, "cannot follow symlink `%s'", symlink);
return grub_errno;
}
else
{
grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET,
- "xfs does not support inode format %d yet",
+ "XFS does not support inode format %d yet",
node->inode.format);
return 0;
}
default:
grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET,
- "xfs does not support inode format %d yet",
+ "XFS does not support inode format %d yet",
diro->inode.format);
}
return 0;
if (grub_strncmp ((char *) (data->sblock.magic), "XFSB", 4))
{
- grub_error (GRUB_ERR_BAD_FS, "not a xfs filesystem");
+ grub_error (GRUB_ERR_BAD_FS, "not a XFS filesystem");
goto fail;
}
fail:
if (grub_errno == GRUB_ERR_OUT_OF_RANGE)
- grub_error (GRUB_ERR_BAD_FS, "not an xfs filesystem");
+ grub_error (GRUB_ERR_BAD_FS, "not an XFS filesystem");
grub_free (data);
linux_args = 0;
if (linux_addr && grub_ieee1275_release (linux_addr, linux_size))
- return grub_error (GRUB_ERR_OUT_OF_MEMORY, "can not release memory");
+ return grub_error (GRUB_ERR_OUT_OF_MEMORY, "cannot release memory");
if (initrd_addr && grub_ieee1275_release (initrd_addr, initrd_size))
- return grub_error (GRUB_ERR_OUT_OF_MEMORY, "can not release memory");
+ return grub_error (GRUB_ERR_OUT_OF_MEMORY, "cannot release memory");
linux_addr = 0;
initrd_addr = 0;
break;
}
if (found_addr == -1)
- return grub_error (GRUB_ERR_OUT_OF_MEMORY, "could not claim memory");
+ return grub_error (GRUB_ERR_OUT_OF_MEMORY, "couldn't claim memory");
/* Now load the segments into the area we claimed. */
auto grub_err_t offset_phdr (Elf32_Phdr *phdr, grub_addr_t *addr, int *do_load);
break;
}
if (found_addr == -1)
- return grub_error (GRUB_ERR_OUT_OF_MEMORY, "could not claim memory");
+ return grub_error (GRUB_ERR_OUT_OF_MEMORY, "couldn't claim memory");
/* Now load the segments into the area we claimed. */
auto grub_err_t offset_phdr (Elf64_Phdr *phdr, grub_addr_t *addr, int *do_load);
if (found_addr == -1)
{
- grub_error (GRUB_ERR_OUT_OF_MEMORY, "can not claim memory");
+ grub_error (GRUB_ERR_OUT_OF_MEMORY, "cannot claim memory");
goto fail;
}
paddr = alloc_phys (linux_size + off);
if (paddr == (grub_addr_t) -1)
return grub_error (GRUB_ERR_OUT_OF_MEMORY,
- "could not allocate physical memory");
+ "couldn't allocate physical memory");
ret = grub_ieee1275_map_physical (paddr, linux_addr - off,
linux_size + off, IEEE1275_MAP_DEFAULT);
if (ret)
return grub_error (GRUB_ERR_OUT_OF_MEMORY,
- "could not map physical memory");
+ "couldn't map physical memory");
grub_dprintf ("loader", "Loading linux at vaddr 0x%lx, paddr 0x%lx, size 0x%lx\n",
linux_addr, paddr, linux_size);
if (paddr == (grub_addr_t) -1)
{
grub_error (GRUB_ERR_OUT_OF_MEMORY,
- "could not allocate physical memory");
+ "couldn't allocate physical memory");
goto fail;
}
ret = grub_ieee1275_map_physical (paddr, addr, size, IEEE1275_MAP_DEFAULT);
if (ret)
{
grub_error (GRUB_ERR_OUT_OF_MEMORY,
- "could not map physical memory");
+ "couldn't map physical memory");
goto fail;
}
grub_util_info ("reading %s via GRUB facilities", grub_path);
file = grub_file_open (grub_path);
if (! file)
- grub_util_error ("can not open %s via GRUB facilities", grub_path);
+ grub_util_error ("cannot open %s via GRUB facilities", grub_path);
filebuf_via_grub = xmalloc (file->size);
grub_file_read (file, filebuf_via_grub, file->size);
free (p);
if (stat (buf, &st) < 0)
- grub_util_error ("can not stat %s: %s", buf, strerror (errno));
+ grub_util_error ("cannot stat %s: %s", buf, strerror (errno));
buf2 = strdup (buf);
num = st.st_dev;
*++p = 0;
if (stat (buf, &st) < 0)
- grub_util_error ("can not stat %s: %s", buf, strerror (errno));
+ grub_util_error ("cannot stat %s: %s", buf, strerror (errno));
/* buf is another filesystem; we found it. */
if (st.st_dev != num)