Date: Tue, 6 Sep 2016 06:13:48 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r305458 - stable/10/sys/boot/i386/libi386 Message-ID: <201609060613.u866Dmfv086666@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avg Date: Tue Sep 6 06:13:47 2016 New Revision: 305458 URL: https://svnweb.freebsd.org/changeset/base/305458 Log: MFC r303738: report sector size and number of sectors in lsdev output for bios disks Modified: stable/10/sys/boot/i386/libi386/biosdisk.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/boot/i386/libi386/biosdisk.c ============================================================================== --- stable/10/sys/boot/i386/libi386/biosdisk.c Tue Sep 6 06:13:36 2016 (r305457) +++ stable/10/sys/boot/i386/libi386/biosdisk.c Tue Sep 6 06:13:47 2016 (r305458) @@ -266,9 +266,11 @@ bd_print(int verbose) int i; 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); pager_output(line); dev.d_dev = &biosdisk; dev.d_unit = i;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609060613.u866Dmfv086666>