summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-04-09 09:21:33 +0000
committerphk <phk@FreeBSD.org>2003-04-09 09:21:33 +0000
commit1cbd4211541c0948ed249808b8154a8033d49b17 (patch)
treef403212609e69b56defc29467e1b49014f4572cc /sys
parent3faf153e04971a765b1fc2aa0e91b8f1b713e62d (diff)
downloadFreeBSD-src-1cbd4211541c0948ed249808b8154a8033d49b17.zip
FreeBSD-src-1cbd4211541c0948ed249808b8154a8033d49b17.tar.gz
Correctly split cyl/sects bytes when we print them.
Diffstat (limited to 'sys')
-rw-r--r--sys/geom/geom_mbr.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/geom/geom_mbr.c b/sys/geom/geom_mbr.c
index 92ba6a8..53066b8 100644
--- a/sys/geom/geom_mbr.c
+++ b/sys/geom/geom_mbr.c
@@ -65,6 +65,7 @@ static struct dos_partition historical_bogus_partition_table[NDOSPART] = {
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, },
{ 0x80, 0, 1, 0, DOSPTYP_386BSD, 255, 255, 255, 0, 50000, },
};
+
static struct dos_partition historical_bogus_partition_table_fixed[NDOSPART] = {
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, },
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, },
@@ -77,8 +78,10 @@ g_mbr_print(int i, struct dos_partition *dp)
{
printf("[%d] f:%02x typ:%d", i, dp->dp_flag, dp->dp_typ);
- printf(" s(CHS):%d/%d/%d", dp->dp_scyl, dp->dp_shd, dp->dp_ssect);
- printf(" e(CHS):%d/%d/%d", dp->dp_ecyl, dp->dp_ehd, dp->dp_esect);
+ printf(" s(CHS):%d/%d/%d", DPCYL(dp->dp_scyl, dp->dp_ssect),
+ dp->dp_shd, DPSECT(dp->dp_ssect));
+ printf(" e(CHS):%d/%d/%d", DPCYL(dp->dp_ecyl, dp->dp_esect),
+ dp->dp_ehd, DPSECT(dp->dp_esect));
printf(" s:%d l:%d\n", dp->dp_start, dp->dp_size);
}
OpenPOWER on IntegriCloud