From b609411e764b42639d446fc70804e5fa4398105f Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Mon, 13 Mar 2023 09:23:22 +0100 Subject: [PATCH] part_block: add partition type to log message --- repos/os/src/server/part_block/gpt.h | 2 +- repos/os/src/server/part_block/mbr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/repos/os/src/server/part_block/gpt.h b/repos/os/src/server/part_block/gpt.h index e305a44215..2f2965c241 100644 --- a/repos/os/src/server/part_block/gpt.h +++ b/repos/os/src/server/part_block/gpt.h @@ -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, "'"); } diff --git a/repos/os/src/server/part_block/mbr.h b/repos/os/src/server/part_block/mbr.h index a4ec695c60..68f47731de 100644 --- a/repos/os/src/server/part_block/mbr.h +++ b/repos/os/src/server/part_block/mbr.h @@ -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));