diff options
author | Igor Sobrado <sobrado@cvs.openbsd.org> | 2008-02-18 21:33:06 +0000 |
---|---|---|
committer | Igor Sobrado <sobrado@cvs.openbsd.org> | 2008-02-18 21:33:06 +0000 |
commit | d5f2cc1aba44a6f4376df2d45a8b739938cf2455 (patch) | |
tree | 0b38424d974b776c81c45ab38d6d66ca08d99655 /sbin/fdisk | |
parent | eaf7e4077bbdbef69eadc94b58a322563858e587 (diff) |
adjust width of S column to improve printing of the MBR partition table
on modern disk geometries; while here, better alignment of column labels
ok jmc@, jsing@, krw@, and otto@
Diffstat (limited to 'sbin/fdisk')
-rw-r--r-- | sbin/fdisk/fdisk.8 | 8 | ||||
-rw-r--r-- | sbin/fdisk/part.c | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/sbin/fdisk/fdisk.8 b/sbin/fdisk/fdisk.8 index 6966121c7f6..a4d5db6127e 100644 --- a/sbin/fdisk/fdisk.8 +++ b/sbin/fdisk/fdisk.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: fdisk.8,v 1.64 2007/12/30 13:26:03 sobrado Exp $ +.\" $OpenBSD: fdisk.8,v 1.65 2008/02/18 21:33:05 sobrado Exp $ .\" .\" Copyright (c) 1997 Tobias Weingartner .\" All rights reserved. @@ -23,7 +23,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: December 30 2007 $ +.Dd $Mdocdate: February 18 2008 $ .Dt FDISK 8 .Os .Sh NAME @@ -141,9 +141,9 @@ prints the MBR partition table of the specified device: # fdisk wd0 Disk: wd0 geometry: 5168/240/63 [78140160 Sectors] Offset: 0 Signature: 0xAA55 - Starting Ending LBA Info: + Starting Ending LBA Info: #: id C H S - C H S [ start: size ] ------------------------------------------------------------------------- +------------------------------------------------------------------------- 0: 04 0 1 1 - 170 0 63 [ 63: 2570462 ] DOS FAT-16 1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused diff --git a/sbin/fdisk/part.c b/sbin/fdisk/part.c index 925cb7f9409..4dfede2bd93 100644 --- a/sbin/fdisk/part.c +++ b/sbin/fdisk/part.c @@ -1,4 +1,4 @@ -/* $OpenBSD: part.c,v 1.45 2007/07/04 16:34:15 deraadt Exp $ */ +/* $OpenBSD: part.c,v 1.46 2008/02/18 21:33:05 sobrado Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -282,13 +282,13 @@ PRT_print(int num, prt_t *partn, char *units) i = unit_lookup(units); if (partn == NULL) { - printf(" Starting Ending LBA Info:\n"); - printf(" #: id C H S - C H S [ start: size ]\n"); - printf("------------------------------------------------------------------------\n"); + printf(" Starting Ending LBA Info:\n"); + printf(" #: id C H S - C H S [ start: size ]\n"); + printf("-------------------------------------------------------------------------------\n"); } else { size = ((double)partn->ns * unit_types[SECTORS].conversion) / unit_types[i].conversion; - printf("%c%1d: %.2X %6u %3u %2u - %6u %3u %2u [%12u:%12.0f%s] %s\n", + printf("%c%1d: %.2X %6u %3u %3u - %6u %3u %3u [%12u:%12.0f%s] %s\n", (partn->flag == 0x80)?'*':' ', num, partn->id, partn->scyl, partn->shead, partn->ssect, |