* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
disunification.
This commit is contained in:
parent
54e03cfcf0
commit
59e2651a06
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
|
||||||
|
disunification.
|
||||||
|
|
||||||
2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
|
2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
|
* conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
|
||||||
|
|
|
@ -1097,7 +1097,8 @@ grub_util_biosdisk_write (grub_disk_t disk, grub_disk_addr_t sector,
|
||||||
parts. -jochen */
|
parts. -jochen */
|
||||||
if (grub_util_fd_write (fd, buf, (1 << disk->log_sector_size))
|
if (grub_util_fd_write (fd, buf, (1 << disk->log_sector_size))
|
||||||
!= (1 << disk->log_sector_size))
|
!= (1 << disk->log_sector_size))
|
||||||
return grub_error (GRUB_ERR_WRITE_ERROR, N_("cannot write `%s': %s"),
|
return grub_error (GRUB_ERR_WRITE_ERROR,
|
||||||
|
N_("cannot write to `%s': %s"),
|
||||||
map[disk->id].device, strerror (errno));
|
map[disk->id].device, strerror (errno));
|
||||||
|
|
||||||
buf += (1 << disk->log_sector_size);
|
buf += (1 << disk->log_sector_size);
|
||||||
|
@ -1108,7 +1109,7 @@ grub_util_biosdisk_write (grub_disk_t disk, grub_disk_addr_t sector,
|
||||||
|
|
||||||
if (grub_util_fd_write (fd, buf, max << disk->log_sector_size)
|
if (grub_util_fd_write (fd, buf, max << disk->log_sector_size)
|
||||||
!= (ssize_t) (max << disk->log_sector_size))
|
!= (ssize_t) (max << disk->log_sector_size))
|
||||||
return grub_error (GRUB_ERR_WRITE_ERROR, N_("cannot write `%s': %s"),
|
return grub_error (GRUB_ERR_WRITE_ERROR, N_("cannot write to `%s': %s"),
|
||||||
map[disk->id].device, strerror (errno));
|
map[disk->id].device, strerror (errno));
|
||||||
size -= max;
|
size -= max;
|
||||||
buf += (max << disk->log_sector_size);
|
buf += (max << disk->log_sector_size);
|
||||||
|
|
Loading…
Reference in a new issue