Fixes for minor typos and trivial bugs.
This commit is contained in:
@@ -302,7 +302,7 @@ void GPTPart::ShowSummary(int partNum, uint32_t blockSize) {
|
|||||||
cout << firstLBA << " ";
|
cout << firstLBA << " ";
|
||||||
cout.width(14);
|
cout.width(14);
|
||||||
cout << lastLBA << " ";
|
cout << lastLBA << " ";
|
||||||
cout << BytesToIeee(lastLBA - firstLBA + 1, blockSize) << " ";
|
cout << sizeInIeee << " ";
|
||||||
if (sizeInIeee.length() < 10)
|
if (sizeInIeee.length() < 10)
|
||||||
for (i = 0; i < 10 - sizeInIeee.length(); i++)
|
for (i = 0; i < 10 - sizeInIeee.length(); i++)
|
||||||
cout << " ";
|
cout << " ";
|
||||||
|
|||||||
@@ -198,9 +198,9 @@ void GPTDataTextUI::CreatePartition(void) {
|
|||||||
Align(&firstInLargest);
|
Align(&firstInLargest);
|
||||||
|
|
||||||
// Get partition number....
|
// Get partition number....
|
||||||
|
prompt1 << "Partition number (" << firstFreePart + 1 << "-" << numParts
|
||||||
|
<< ", default " << firstFreePart + 1 << "): ";
|
||||||
do {
|
do {
|
||||||
prompt1 << "Partition number (" << firstFreePart + 1 << "-" << numParts
|
|
||||||
<< ", default " << firstFreePart + 1 << "): ";
|
|
||||||
partNum = GetNumber(firstFreePart + 1, numParts,
|
partNum = GetNumber(firstFreePart + 1, numParts,
|
||||||
firstFreePart + 1, prompt1.str()) - 1;
|
firstFreePart + 1, prompt1.str()) - 1;
|
||||||
if (partitions[partNum].GetFirstLBA() != 0)
|
if (partitions[partNum].GetFirstLBA() != 0)
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ uint64_t IeeeToInt(string inValue, uint64_t sSize, uint64_t low, uint64_t high,
|
|||||||
|
|
||||||
if (sSize == 0) {
|
if (sSize == 0) {
|
||||||
sSize = SECTOR_SIZE;
|
sSize = SECTOR_SIZE;
|
||||||
cerr << "Bug: Sector size invalid in SIToInt()!\n";
|
cerr << "Bug: Sector size invalid in IeeeToInt()!\n";
|
||||||
} // if
|
} // if
|
||||||
|
|
||||||
// Remove leading spaces, if present
|
// Remove leading spaces, if present
|
||||||
|
|||||||
Reference in New Issue
Block a user