Don't hardcode disk major device types inside DEBUG block. Use
authorkrw <krw@openbsd.org>
Fri, 23 Sep 2022 12:32:50 +0000 (12:32 +0000)
committerkrw <krw@openbsd.org>
Fri, 23 Sep 2022 12:32:50 +0000 (12:32 +0000)
commitf8e49338d1360c3938427ff5002b488a73db4bcc
treed0180040edc78a825db94554196ebc41c5bbf061
parenteccaa8f559c07980a4fa9511b328dd1bfca3dac4
Don't hardcode disk major device types inside DEBUG block. Use
findblkname() and DISKUNIT(). Allows all block devices, not just
sd* and vnd* to generate useful names in DEBUG output.

Cluebat by deraadt@
sys/kern/subr_disk.c