part_block: add partition type to log message

This commit is contained in:
Christian Helmuth 2023-03-13 09:23:22 +01:00
parent 188a214a29
commit b609411e76
2 changed files with 2 additions and 2 deletions

View File

@ -342,7 +342,7 @@ class Block::Gpt : public Block::Partition_table
_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(),
"' name: '", e, "'");
}

View File

@ -192,7 +192,7 @@ struct Block::Mbr_partition_table : public Block::Partition_table
bool const mbr_valid = mbr.valid();
if (mbr_valid) {
_parse_mbr(mbr, [&] (int i, Partition_record const &r, unsigned offset) {
log("Partition ", i, ": LBA ",
log("MBR Partition ", i, ": LBA ",
r.lba() + offset, " (",
r.sectors(), " blocks) type: ",
Hex(r.type(), Hex::OMIT_PREFIX));