Chameleon

Chameleon Commit Details

Date:2011-07-22 18:35:35 (8 years 1 month ago)
Author:Evan Lojewski
Commit:1210
Parents: 1209
Message:remove debugging from GUIDPartition.cpp
Changes:
M/branches/xZen/i386/modules/Disk/GUIDPartition.cpp

File differences

branches/xZen/i386/modules/Disk/GUIDPartition.cpp
4343
4444
4545
46
47
4846
4947
50
51
52
53
54
55
56
57
58
59
6048
61
62
49
6350
6451
65
66
67
6852
69
70
71
7253
7354
74
7555
7656
7757
if(entrySize && mPartitionNumber >= 0 && mPartitionNumber < mNumPartitions)
{
printf("Partitions %d at LBA %d\n", mPartitionNumber, 2 + (mPartitionNumber / 4));
// TODO: Verify partition is valid + offset.
mDisk->Read(2 + (mPartitionNumber / 4), 1, mLBABUffer);
for(int i = 0; i < 10; i++)
{
for(int j = 0; j < 15; j++)
{
printf("%x ", mLBABUffer[i*15+j]);
}
printf("\n");
}
UInt32 offset = (mPartitionNumber % 4) * entrySize;
printf("\toffset %d at LBA %d\n", offset);
mGPTEntry = (GPTEntry*) /*mLBABUffer*/ BIOS_ADDR + offset;
printf("UUID0 %X%X%X%X\n", mGPTEntry->ent_type[3], mGPTEntry->ent_type[2], mGPTEntry->ent_type[1], mGPTEntry->ent_type[0]);
printf("mGPTEntry = %d\n", mGPTEntry);
mNumSectors = mGPTEntry->ent_lba_end - mGPTEntry->ent_lba_start;
printf("mNumSectors = %d\n", mNumSectors);
printf("LBS Start: %lld\tEnd: %lld\n", mGPTEntry->ent_lba_start, mGPTEntry->ent_lba_end);
mBeginSector = mGPTEntry->ent_lba_start;
//mUUID = mGPTEntry->ent_uuid;
pause();
}
}

Archive Download the corresponding diff file

Revision: 1210