worked on FileSystem, started to migrate logging class

This commit is contained in:
2021-02-14 15:29:21 +01:00
parent faf6e55bc5
commit 6aa951190e
19 changed files with 612 additions and 241 deletions

View File

@@ -2,6 +2,8 @@
template <typename BlockDev> class MBR {
static constexpr const char* NAME = "MBR";
BlockDev& dev;
bool present = false;
bool valid = false;
@@ -59,7 +61,13 @@ private:
p->type = src[0x4];
p->firstSector = getU32(src, 8);
p->numSectors = getU32(src, 12);
if (p->type) {
Log::addInfo(NAME, "Part[%i] At:%d*512, Len:%d*512, Type:%d", i, p->firstSector, p->numSectors, p->type);
} else {
Log::addInfo(NAME, "Part[%i] -", i);
}
}
}