diff options
author | srs5694 <srs5694@users.sourceforge.net> | 2010-10-07 13:00:45 -0400 |
---|---|---|
committer | srs5694 <srs5694@users.sourceforge.net> | 2010-10-07 13:00:45 -0400 |
commit | 0873e9d0e9345a2c4418b4718db525c9f1111c83 (patch) | |
tree | 4c6b2adf5d20e0bce392eb2cf0ebc47801d9495b /gptpart.cc | |
parent | ab4b0438394df4ae6bdea86194e254d7d35fdea0 (diff) | |
download | sgdisk-0873e9d0e9345a2c4418b4718db525c9f1111c83.tar.gz |
Version 0.6.12 release; mostly changes in support for disks with other
than 512-byte sectors.
Diffstat (limited to 'gptpart.cc')
-rw-r--r-- | gptpart.cc | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -150,7 +150,7 @@ void GPTPart::ShowSummary(int partNum, uint32_t blockSize) { int i; if (firstLBA != 0) { - sizeInSI = BytesToSI(blockSize * (lastLBA - firstLBA + 1)); + sizeInSI = BytesToSI(lastLBA - firstLBA + 1, blockSize); cout.fill(' '); cout.width(4); cout << partNum + 1 << " "; @@ -158,7 +158,7 @@ void GPTPart::ShowSummary(int partNum, uint32_t blockSize) { cout << firstLBA << " "; cout.width(14); cout << lastLBA << " "; - cout << BytesToSI(blockSize * (lastLBA - firstLBA + 1)) << " "; + cout << BytesToSI(lastLBA - firstLBA + 1, blockSize) << " "; for (i = 0; i < 10 - (int) sizeInSI.length(); i++) cout << " "; cout.fill('0'); @@ -182,12 +182,12 @@ void GPTPart::ShowDetails(uint32_t blockSize) { cout << "Partition unique GUID: " << uniqueGUID << "\n"; cout << "First sector: " << firstLBA << " (at " - << BytesToSI(firstLBA * blockSize) << ")\n"; + << BytesToSI(firstLBA, blockSize) << ")\n"; cout << "Last sector: " << lastLBA << " (at " - << BytesToSI(lastLBA * blockSize) << ")\n"; + << BytesToSI(lastLBA, blockSize) << ")\n"; size = (lastLBA - firstLBA + 1); cout << "Partition size: " << size << " sectors (" - << BytesToSI(size * ((uint64_t) blockSize)) << ")\n"; + << BytesToSI(size, blockSize) << ")\n"; cout << "Attribute flags: "; cout.fill('0'); cout.width(16); |