* grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext

analysis.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-08-02 22:56:20 +02:00
parent 3719fbc57f
commit 4ed4139290
2 changed files with 12 additions and 8 deletions

View file

@ -1,3 +1,8 @@
2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
analysis.
2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/loader/arm/linux.c: Change printf to dprintf.

View file

@ -67,10 +67,9 @@ dfly_partition_map_iterate (grub_disk_t disk,
if (label.magic != grub_cpu_to_le32_compile_time (GRUB_DISKLABEL64_MAGIC))
{
grub_dprintf ("partition",
"bad magic (found 0x%" PRIxGRUB_UINT32_T "; "
"wanted 0x%" PRIxGRUB_UINT32_T ")\n",
grub_le_to_cpu32 (label.magic),
GRUB_DISKLABEL64_MAGIC);
"bad magic (found 0x%x; wanted 0x%x)\n",
(unsigned int) grub_le_to_cpu32 (label.magic),
(unsigned int) GRUB_DISKLABEL64_MAGIC);
return grub_error (GRUB_ERR_BAD_PART_TABLE, "disklabel64 not found");
}
@ -88,11 +87,11 @@ dfly_partition_map_iterate (grub_disk_t disk,
return grub_errno;
grub_dprintf ("partition",
"partition %2d: offset 0x%" PRIxGRUB_UINT64_T ", "
"size 0x%" PRIxGRUB_UINT64_T "\n",
"partition %2d: offset 0x%llx, "
"size 0x%llx\n",
partno,
grub_le_to_cpu64 (dpart.boffset),
grub_le_to_cpu64 (dpart.bsize));
(unsigned long long) grub_le_to_cpu64 (dpart.boffset),
(unsigned long long) grub_le_to_cpu64 (dpart.bsize));
/* Is partition initialized? */
if (dpart.bsize == 0)