diff options
author | Dan McDonald <danmcd@omniti.com> | 2016-11-18 14:34:54 -0500 |
---|---|---|
committer | Dan McDonald <danmcd@omniti.com> | 2016-11-18 14:36:14 -0500 |
commit | 9c02c7edf62c061c8b4d3134fb190ea51af6f69f (patch) | |
tree | a12b9e36bcc165d09ed3ee5e3b349ef9e2bb318d | |
parent | 2c601221f598e1c7737ee1128853af2a7be2acb2 (diff) | |
download | illumos-joyent-9c02c7edf62c061c8b4d3134fb190ea51af6f69f.tar.gz |
7565 loader: report sector size and number of sectors in lsdev output for bios disks
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Igor Kozhukhov <igor@dilos.org>
Approved by: Dan McDonald <danmcd@omniti.com>
-rw-r--r-- | usr/src/boot/sys/boot/i386/libi386/biosdisk.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/src/boot/sys/boot/i386/libi386/biosdisk.c b/usr/src/boot/sys/boot/i386/libi386/biosdisk.c index faa03309a8..bf11f27e0c 100644 --- a/usr/src/boot/sys/boot/i386/libi386/biosdisk.c +++ b/usr/src/boot/sys/boot/i386/libi386/biosdisk.c @@ -288,9 +288,12 @@ bd_print(int verbose) int i, ret = 0; for (i = 0; i < nbdinfo; i++) { - sprintf(line, " disk%d: BIOS drive %c:\n", i, + snprintf(line, sizeof (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); ret = pager_output(line); if (ret != 0) return (ret); |