git: 9b6761bd1365 - main - twe: Use devclass_find in twe_report debug function.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 21 Apr 2022 17:30:09 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=9b6761bd13654c74c874524b79317e600d667233
commit 9b6761bd13654c74c874524b79317e600d667233
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-21 17:29:14 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-21 17:29:14 +0000
twe: Use devclass_find in twe_report debug function.
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D34999
---
sys/dev/twe/twe_freebsd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/dev/twe/twe_freebsd.c b/sys/dev/twe/twe_freebsd.c
index 952d5f133b8f..d5425fd2d851 100644
--- a/sys/dev/twe/twe_freebsd.c
+++ b/sys/dev/twe/twe_freebsd.c
@@ -1166,7 +1166,7 @@ twe_report(void)
struct twe_softc *sc;
int i;
- for (i = 0; (sc = devclass_get_softc(twe_devclass, i)) != NULL; i++)
+ for (i = 0; (sc = devclass_get_softc(devclass_find("twe"), i)) != NULL; i++)
twe_print_controller(sc);
printf("twed: total bio count in %u out %u\n", twed_bio_in, twed_bio_out);
}