summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2001-12-28 18:32:13 +0000
committerbde <bde@FreeBSD.org>2001-12-28 18:32:13 +0000
commit4ac956411e39c824803f165d9a584db451b300e3 (patch)
tree8f2605fee1ef921ed992b68b32dcb33fe2bdab39 /sys/kern
parent731819d234316237964ff0efc06686e69ff8a776 (diff)
downloadFreeBSD-src-4ac956411e39c824803f165d9a584db451b300e3.zip
FreeBSD-src-4ac956411e39c824803f165d9a584db451b300e3.tar.gz
Fixed an apparent typo ("-" before ":") and an English error (comma
splice) in the "already exists" message. Fixed some minor style bugs (KNFization to "return (foo)" had rotted in 2 out of 177 cases).
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_bus.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c
index df73c8f..574940c 100644
--- a/sys/kern/subr_bus.c
+++ b/sys/kern/subr_bus.c
@@ -361,7 +361,7 @@ devclass_alloc_unit(devclass_t dc, int *unitp)
if (unit != -1) {
if (unit >= 0 && unit < dc->maxunit &&
dc->devices[unit] != NULL) {
- printf("%s-: %s%d already exists, skipping it\n",
+ printf("%s: %s%d already exists; skipping it\n",
dc->name, dc->name, *unitp);
return (EEXIST);
}
@@ -1280,7 +1280,7 @@ resource_list_print_type(struct resource_list *rl, const char *name, int type,
}
}
}
- return retval;
+ return (retval);
}
/*
@@ -1641,8 +1641,8 @@ int
bus_set_resource(device_t dev, int type, int rid,
u_long start, u_long count)
{
- return BUS_SET_RESOURCE(device_get_parent(dev), dev, type, rid,
- start, count);
+ return (BUS_SET_RESOURCE(device_get_parent(dev), dev, type, rid,
+ start, count));
}
int
OpenPOWER on IntegriCloud