diff options
author | Roderick W. Smith <rodsmith@rodsbooks.com> | 2014-03-29 00:27:33 -0400 |
---|---|---|
committer | Roderick W. Smith <rodsmith@rodsbooks.com> | 2014-03-29 00:27:33 -0400 |
commit | f694803eca2074523b8e502d386ca03b5642a63b (patch) | |
tree | 62daa407de2c4354f871df1b3b45a356fcff1d43 | |
parent | e62b52732689bc467051688647dbad3d5daa5cb6 (diff) | |
download | sgdisk-f694803eca2074523b8e502d386ca03b5642a63b.tar.gz |
Fixes for minor typos and trivial bugs.
-rw-r--r-- | gptpart.cc | 2 | ||||
-rw-r--r-- | gpttext.cc | 4 | ||||
-rw-r--r-- | support.cc | 2 |
3 files changed, 4 insertions, 4 deletions
@@ -302,7 +302,7 @@ void GPTPart::ShowSummary(int partNum, uint32_t blockSize) { cout << firstLBA << " "; cout.width(14); cout << lastLBA << " "; - cout << BytesToIeee(lastLBA - firstLBA + 1, blockSize) << " "; + cout << sizeInIeee << " "; if (sizeInIeee.length() < 10) for (i = 0; i < 10 - sizeInIeee.length(); i++) cout << " "; @@ -198,9 +198,9 @@ void GPTDataTextUI::CreatePartition(void) { Align(&firstInLargest); // Get partition number.... + prompt1 << "Partition number (" << firstFreePart + 1 << "-" << numParts + << ", default " << firstFreePart + 1 << "): "; do { - prompt1 << "Partition number (" << firstFreePart + 1 << "-" << numParts - << ", default " << firstFreePart + 1 << "): "; partNum = GetNumber(firstFreePart + 1, numParts, firstFreePart + 1, prompt1.str()) - 1; 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) { sSize = SECTOR_SIZE; - cerr << "Bug: Sector size invalid in SIToInt()!\n"; + cerr << "Bug: Sector size invalid in IeeeToInt()!\n"; } // if // Remove leading spaces, if present |