summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2008-08-08 17:12:38 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2008-08-08 17:12:38 +0000
commitc9b85a10fd1e4200218596b43b4dce161d4e253c (patch)
treee42381f0e594e261e5791f02de5b3098099771b9 /sys/arch
parente23d642d208f6e954cea39bf798bcc81165a5b9f (diff)
Wrap long lines and remove useless comment.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sgi/stand/sgivol/sgivol.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/sys/arch/sgi/stand/sgivol/sgivol.c b/sys/arch/sgi/stand/sgivol/sgivol.c
index 746fd30fdf3..b38e287aad3 100644
--- a/sys/arch/sgi/stand/sgivol/sgivol.c
+++ b/sys/arch/sgi/stand/sgivol/sgivol.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sgivol.c,v 1.10 2008/08/08 16:07:41 jsing Exp $ */
+/* $OpenBSD: sgivol.c,v 1.11 2008/08/08 17:12:37 jsing Exp $ */
/* $NetBSD: sgivol.c,v 1.8 2003/11/08 04:59:00 sekiya Exp $ */
/*-
@@ -253,7 +253,8 @@ display_vol(void)
printf("\nVolume header files:\n");
for (i = 0; i < SGI_SIZE_VOLDIR; ++i) {
if (volhdr->voldir[i].name[0] != '\0') {
- printf("%-8s offset %4d blocks, length %8d bytes (%d blocks)\n",
+ printf("%-8s offset %4d blocks, "
+ "length %8d bytes (%d blocks)\n",
volhdr->voldir[i].name,
betoh32(volhdr->voldir[i].block),
betoh32(volhdr->voldir[i].bytes),
@@ -364,7 +365,6 @@ write_file(void)
}
if (slot == -1)
errx(1, "no more directory entries available");
- /* -w can overwrite, -a won't overwrite */
if (betoh32(volhdr->voldir[slot].block) > 0) {
if (!quiet)
printf("File %s exists, removing old file\n",
@@ -514,8 +514,9 @@ allocate_space(int size)
first = betoh32(volhdr->voldir[n].block) +
howmany(betoh32(volhdr->voldir[n].bytes),
DEV_BSIZE);
-#if 0
- printf("allocate: n=%d first=%d blocks=%d size=%d\n",
+#if DEBUG
+ printf("allocate: "
+ "n=%d first=%d blocks=%d size=%d\n",
n, first, blocks, size);
printf("%s %d %d\n", volhdr->voldir[n].name,
volhdr->voldir[n].block,
@@ -524,7 +525,8 @@ allocate_space(int size)
first, volhdr->voldir[n].block,
first + blocks - 1,
volhdr->voldir[n].block +
- howmany(volhdr->voldir[n].bytes, DEV_BSIZE));
+ howmany(volhdr->voldir[n].bytes,
+ DEV_BSIZE));
#endif
n = 0;
continue;