diff options
author | avg <avg@FreeBSD.org> | 2016-09-06 06:13:36 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2016-09-06 06:13:36 +0000 |
commit | b2223ce8e9f8ed9a7f239ec1f7bb2cf3cb2591f8 (patch) | |
tree | 552e55a25891673bd97592ee9d8bec1621f3441c /sys/boot/i386 | |
parent | 0772c1030c08964ecd6cbd4f0535597bee41c666 (diff) | |
download | FreeBSD-src-b2223ce8e9f8ed9a7f239ec1f7bb2cf3cb2591f8.zip FreeBSD-src-b2223ce8e9f8ed9a7f239ec1f7bb2cf3cb2591f8.tar.gz |
MFC r303738: report sector size and number of sectors in lsdev output
for bios disks
Diffstat (limited to 'sys/boot/i386')
-rw-r--r-- | sys/boot/i386/libi386/biosdisk.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/boot/i386/libi386/biosdisk.c b/sys/boot/i386/libi386/biosdisk.c index bbd4716..d10555f 100644 --- a/sys/boot/i386/libi386/biosdisk.c +++ b/sys/boot/i386/libi386/biosdisk.c @@ -315,9 +315,11 @@ bd_print(int verbose) pager_open(); for (i = 0; i < nbdinfo; i++) { - sprintf(line, " disk%d: BIOS drive %c:\n", i, + sprintf(line, " disk%d: BIOS drive %c (%ju X %u):\n", i, (bdinfo[i].bd_unit < 0x80) ? ('A' + bdinfo[i].bd_unit): - ('C' + bdinfo[i].bd_unit - 0x80)); + ('C' + bdinfo[i].bd_unit - 0x80), + (uintmax_t)bdinfo[i].bd_sectors, + bdinfo[i].bd_sectorsize); if (pager_output(line)) break; dev.d_dev = &biosdisk; |