From 4ac956411e39c824803f165d9a584db451b300e3 Mon Sep 17 00:00:00 2001 From: bde Date: Fri, 28 Dec 2001 18:32:13 +0000 Subject: 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). --- sys/kern/subr_bus.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/kern') 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 -- cgit v1.1