worked on FileSystem, started to migrate logging class
This commit is contained in:
10
ext/sd/MBR.h
10
ext/sd/MBR.h
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user