From 25bf7324c842e591d3e12b26e3f51ae7db23bb1d Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Fri, 28 Dec 2001 18:32:13 +0000 Subject: [PATCH] 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(-) diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index df73c8fb727..574940cac50 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