mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-31 14:40:54 +00:00
part_block: add partition type to log message
This commit is contained in:
parent
188a214a29
commit
b609411e76
@ -342,7 +342,7 @@ class Block::Gpt : public Block::Partition_table
|
|||||||
|
|
||||||
_part_list[i].construct(start, length);
|
_part_list[i].construct(start, length);
|
||||||
|
|
||||||
log("Partition ", i + 1, ": LBA ", start, " (", length,
|
log("GPT Partition ", i + 1, ": LBA ", start, " (", length,
|
||||||
" blocks) type: '", e.type(),
|
" blocks) type: '", e.type(),
|
||||||
"' name: '", e, "'");
|
"' name: '", e, "'");
|
||||||
}
|
}
|
||||||
|
@ -192,7 +192,7 @@ struct Block::Mbr_partition_table : public Block::Partition_table
|
|||||||
bool const mbr_valid = mbr.valid();
|
bool const mbr_valid = mbr.valid();
|
||||||
if (mbr_valid) {
|
if (mbr_valid) {
|
||||||
_parse_mbr(mbr, [&] (int i, Partition_record const &r, unsigned offset) {
|
_parse_mbr(mbr, [&] (int i, Partition_record const &r, unsigned offset) {
|
||||||
log("Partition ", i, ": LBA ",
|
log("MBR Partition ", i, ": LBA ",
|
||||||
r.lba() + offset, " (",
|
r.lba() + offset, " (",
|
||||||
r.sectors(), " blocks) type: ",
|
r.sectors(), " blocks) type: ",
|
||||||
Hex(r.type(), Hex::OMIT_PREFIX));
|
Hex(r.type(), Hex::OMIT_PREFIX));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user