summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorkre <kre@NetBSD.org>2022-06-14 08:05:55 +0000
committerkre <kre@NetBSD.org>2022-06-14 08:05:55 +0000
commitc418bd41bd6fc2768c11969ae1e3397da104bdd8 (patch)
treec0be0b7df5b7a37c89281f6a26cf5481ae6fc276 /sbin
parent43f17de84f8659a6b7abf351aa99ec602f2b04ce (diff)
KNF (whitespace & 80 column limits) - NFCI.
This is the first of a series of 5 commits in this directory, all coming within minutes or now.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/raidctl/raidctl.c28
1 files changed, 17 insertions, 11 deletions
diff --git a/sbin/raidctl/raidctl.c b/sbin/raidctl/raidctl.c
index fbbabc39a4f..2d5a0dd9422 100644
--- a/sbin/raidctl/raidctl.c
+++ b/sbin/raidctl/raidctl.c
@@ -1,4 +1,4 @@
-/* $NetBSD: raidctl.c,v 1.74 2021/08/02 20:31:15 oster Exp $ */
+/* $NetBSD: raidctl.c,v 1.75 2022/06/14 08:05:55 kre Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -39,7 +39,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: raidctl.c,v 1.74 2021/08/02 20:31:15 oster Exp $");
+__RCSID("$NetBSD: raidctl.c,v 1.75 2022/06/14 08:05:55 kre Exp $");
#endif
@@ -294,7 +294,7 @@ main(int argc,char *argv[])
raidID = DISKUNIT(st.st_rdev);
- switch(action) {
+ switch (action) {
case RAIDFRAME_ADD_HOT_SPARE:
add_hot_spare(fd, component);
break;
@@ -490,7 +490,8 @@ rf_get_device_status(int fd)
} else {
printf("%s status is: %s. Skipping label.\n",
device_config.spares[i].devname,
- device_status(device_config.spares[i].status));
+ device_status(
+ device_config.spares[i].status));
}
}
}
@@ -966,7 +967,8 @@ check_parity(int fd, int do_rewrite, char *dev_name)
get started. */
if (verbose) {
printf("Parity Re-write status:\n");
- do_meter(fd, RAIDFRAME_CHECK_PARITYREWRITE_STATUS_EXT);
+ do_meter(fd,
+ RAIDFRAME_CHECK_PARITYREWRITE_STATUS_EXT);
} else {
do_ioctl(fd,
RAIDFRAME_CHECK_PARITYREWRITE_STATUS,
@@ -975,13 +977,14 @@ check_parity(int fd, int do_rewrite, char *dev_name)
);
while( percent_done < 100 ) {
sleep(3); /* wait a bit... */
- do_ioctl(fd, RAIDFRAME_CHECK_PARITYREWRITE_STATUS,
- &percent_done, "RAIDFRAME_CHECK_PARITYREWRITE_STATUS");
+ do_ioctl(fd,
+ RAIDFRAME_CHECK_PARITYREWRITE_STATUS,
+ &percent_done,
+ "RAIDFRAME_CHECK_PARITYREWRITE_STATUS");
}
}
- printf("%s: Parity Re-write complete\n",
- dev_name);
+ printf("%s: Parity Re-write complete\n", dev_name);
} else {
/* parity is wrong, and is not being fixed.
Exit w/ an error. */
@@ -1175,7 +1178,8 @@ get_time_string(char *string, size_t len, int simple_time)
#endif
if (hours > 0) {
- snprintf(hours_buffer,sizeof hours_buffer,"%02d:",hours);
+ snprintf(hours_buffer,sizeof hours_buffer,
+ "%02d:",hours);
} else {
snprintf(hours_buffer,sizeof hours_buffer," ");
}
@@ -1195,7 +1199,9 @@ usage(void)
{
const char *progname = getprogname();
- fprintf(stderr, "usage: %s [-v] -A [yes | no | softroot | hardroot] dev\n", progname);
+ fprintf(stderr,
+ "usage: %s [-v] -A [yes | no | softroot | hardroot] dev\n",
+ progname);
fprintf(stderr, " %s [-v] -a component dev\n", progname);
fprintf(stderr, " %s [-v] -B dev\n", progname);
fprintf(stderr, " %s [-v] -C config_file dev\n", progname);