diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-07-24 15:11:54 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-07-24 15:11:54 +0000 |
commit | 8613dc72e3cc2c5635e4c431271d47c8e810e2c2 (patch) | |
tree | 449da64deffe20698a6df2f875a70622845c99c8 /sbin | |
parent | 8aa07c03f7ec98fa1cde985c88c373b9bd1851be (diff) |
rearrange newline printing code during editor startup; ok millert krw
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/disklabel/editor.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c index c5bdcc8a2c4..a347a9ebf61 100644 --- a/sbin/disklabel/editor.c +++ b/sbin/disklabel/editor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: editor.c,v 1.123 2007/06/20 19:16:53 otto Exp $ */ +/* $OpenBSD: editor.c,v 1.124 2007/07/24 15:11:53 deraadt Exp $ */ /* * Copyright (c) 1997-2000 Todd C. Miller <Todd.Miller@courtesan.com> @@ -17,7 +17,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: editor.c,v 1.123 2007/06/20 19:16:53 otto Exp $"; +static char rcsid[] = "$OpenBSD: editor.c,v 1.124 2007/07/24 15:11:53 deraadt Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -169,7 +169,7 @@ editor(struct disklabel *lp, int f, char *dev, char *fstabfile) if (label.d_interleave == 0) label.d_interleave = 1; - puts("\nInitial label editor (enter '?' for help at any prompt)"); + puts("Initial label editor (enter '?' for help at any prompt)"); lastlabel = label; for (;;) { fputs("> ", stdout); @@ -1671,15 +1671,15 @@ find_bounds(struct disklabel *lp) starting_sector = 63; } - printf("\nTreating sectors %llu-%llu as the OpenBSD portion of the " - "disk.\nYou can use the 'b' command to change this.\n", + printf("Treating sectors %llu-%llu as the OpenBSD portion of the " + "disk.\nYou can use the 'b' command to change this.\n\n", starting_sector, ending_sector); } #elif (NUMBOOT == 1) /* Boot blocks take up the first cylinder */ starting_sector = lp->d_secpercyl; - printf("\nReserving the first data cylinder for boot blocks.\n" - "You can use the 'b' command to change this.\n"); + printf("Reserving the first data cylinder for boot blocks.\n" + "You can use the 'b' command to change this.\n\n"); #endif } |