diff options
author | peter <peter@FreeBSD.org> | 2000-09-05 00:30:46 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-09-05 00:30:46 +0000 |
commit | 04da9a4b5ecf12cafa211d3f28aec645650008e4 (patch) | |
tree | 2f6fbe3323a80a13bc271101d0a3d20f98961f85 /sys | |
parent | 283b0b9a59a3fa73db0924ecec4d0540cf9d6950 (diff) | |
download | FreeBSD-src-04da9a4b5ecf12cafa211d3f28aec645650008e4.zip FreeBSD-src-04da9a4b5ecf12cafa211d3f28aec645650008e4.tar.gz |
When we are picking the next available unit number, specifically say
what we picked. Otherwise it is anybody's guess as to where the
device ended up.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/subr_bus.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index d38307f..b038f1b 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -357,12 +357,12 @@ devclass_alloc_unit(devclass_t dc, int *unitp) /* If we have been given a wired unit number, check for existing device */ if (unit != -1) { if (unit >= 0 && unit < dc->maxunit && dc->devices[unit] != NULL) { - if (bootverbose) - printf("%s-: %s%d exists, using next available unit number\n", - dc->name, dc->name, unit); /* find the next available slot */ while (++unit < dc->maxunit && dc->devices[unit] != NULL) ; + if (bootverbose) + printf("%s-: %s%d already exists, using %s%d instead\n", + dc->name, dc->name, *unitp, dc->name, unit); } } else { |