diff options
author | imp <imp@FreeBSD.org> | 1999-12-02 19:51:34 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1999-12-02 19:51:34 +0000 |
commit | a5ed2dfc01145d4c5fa0dfe9a5e3e3b45964b454 (patch) | |
tree | 86bdfc771d3abb35a7ae07a1a32b026c1be68b71 | |
parent | 61ef46db681f9a413878f1883a9cc093d5608093 (diff) | |
download | FreeBSD-src-a5ed2dfc01145d4c5fa0dfe9a5e3e3b45964b454.zip FreeBSD-src-a5ed2dfc01145d4c5fa0dfe9a5e3e3b45964b454.tar.gz |
Print device names for children that fail to detach.
Free child array when we're done with it.
Forgotten by: imp
Submitted by: Nick Hibma <hibma@skylink.it>
-rw-r--r-- | sys/pccard/pccard.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/pccard/pccard.c b/sys/pccard/pccard.c index 77a6bb6..8eecad8 100644 --- a/sys/pccard/pccard.c +++ b/sys/pccard/pccard.c @@ -194,8 +194,10 @@ disable_slot(struct slot *slt) device_get_children(pccarddev, &kids, &nkids); for (i = 0; i < nkids; i++) { if ((ret = device_delete_child(pccarddev, kids[i])) != 0) - printf("pccard: delete failed: %d\n", ret); + printf("pccard: delete of %s failed: %d\n", + device_get_nameunit(kids[i]), ret); } + free(kids, M_TEMP); /* Power off the slot 1/2 second after removal of the card */ slt->poff_ch = timeout(power_off_slot, (caddr_t)slt, hz / 2); |