diff options
author | NeilBrown <neilb@suse.de> | 2012-08-13 00:00:21 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-08-13 00:00:21 +0200 |
commit | ca3b66960301eb5d87e9b2ee99d3728c877ed111 (patch) | |
tree | ca47251c0e7123ba94918c99a471b85941b10cce /Examine.c | |
parent | tests/03r5assemV1: reduce sync speed further. (diff) | |
download | mdadm-ca3b66960301eb5d87e9b2ee99d3728c877ed111.tar.xz mdadm-ca3b66960301eb5d87e9b2ee99d3728c877ed111.zip |
Minor cosmetic fixes in various files.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Examine.c')
-rw-r--r-- | Examine.c | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -1,7 +1,7 @@ /* * mdadm - manage Linux "md" devices aka RAID arrays. * - * Copyright (C) 2001-2009 Neil Brown <neilb@suse.de> + * Copyright (C) 2001-2012 Neil Brown <neilb@suse.de> * * * This program is free software; you can redistribute it and/or modify @@ -47,7 +47,8 @@ int Examine(struct mddev_dev *devlist, * * utime, state etc * - * If (brief) gather devices for same array and just print a mdadm.conf line including devices= + * If (brief) gather devices for same array and just print a mdadm.conf + * line including devices= * if devlist==NULL, use conf_get_devs() */ int fd; @@ -62,7 +63,7 @@ int Examine(struct mddev_dev *devlist, int spares; } *arrays = NULL; - for (; devlist ; devlist=devlist->next) { + for (; devlist ; devlist = devlist->next) { struct supertype *st; int have_container = 0; @@ -124,9 +125,9 @@ int Examine(struct mddev_dev *devlist, } else if (c->brief) { struct array *ap; char *d; - for (ap=arrays; ap; ap=ap->next) { + for (ap = arrays; ap; ap = ap->next) { if (st->ss == ap->st->ss && - st->ss->compare_super(ap->st, st)==0) + st->ss->compare_super(ap->st, st) == 0) break; } if (!ap) { @@ -156,7 +157,7 @@ int Examine(struct mddev_dev *devlist, } if (c->brief) { struct array *ap; - for (ap=arrays; ap; ap=ap->next) { + for (ap = arrays; ap; ap = ap->next) { char sep='='; char *d; int newline = 0; @@ -166,7 +167,9 @@ int Examine(struct mddev_dev *devlist, newline += printf(" spares=%d", ap->spares); if (c->verbose > 0) { newline += printf(" devices"); - for (d=dl_next(ap->devs); d!= ap->devs; d=dl_next(d)) { + for (d = dl_next(ap->devs); + d != ap->devs; + d=dl_next(d)) { printf("%c%s", sep, d); sep=','; } |