Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/raidctl KNF (whitespace & 80 column limits) - NFCI.
details: https://anonhg.NetBSD.org/src/rev/ecd26e70e74e
branches: trunk
changeset: 366776:ecd26e70e74e
user: kre <kre%NetBSD.org@localhost>
date: Tue Jun 14 08:05:55 2022 +0000
description:
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:
sbin/raidctl/raidctl.c | 28 +++++++++++++++++-----------
1 files changed, 17 insertions(+), 11 deletions(-)
diffs (87 lines):
diff -r d058523dc013 -r ecd26e70e74e sbin/raidctl/raidctl.c
--- a/sbin/raidctl/raidctl.c Mon Jun 13 20:16:53 2022 +0000
+++ b/sbin/raidctl/raidctl.c Tue Jun 14 08:05:55 2022 +0000
@@ -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 @@
raidID = DISKUNIT(st.st_rdev);
- switch(action) {
+ switch (action) {
case RAIDFRAME_ADD_HOT_SPARE:
add_hot_spare(fd, component);
break;
@@ -490,7 +490,8 @@
} 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 @@
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 @@
);
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 @@
#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 @@
{
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);
Home |
Main Index |
Thread Index |
Old Index