Skip to content

Commit 4ad6816

Browse files
committed
Print Kernel hang status only in debug mode
In the earlier commit aeff9bb, this guarding conditions for the messages if (kern->io.debug_verbosity > 0) was removed accidentally, now adding it back
1 parent 1847ee9 commit 4ad6816

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/acl_kernel_if.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1678,7 +1678,8 @@ void acl_kernel_if_check_kernel_status(acl_kernel_if *kern) {
16781678

16791679
if (kern->last_kern_update != 0 &&
16801680
(acl_kernel_if_get_time_us(kern) - kern->last_kern_update >
1681-
10 * 1000000)) {
1681+
10 * 1000000) &&
1682+
kern->io.debug_verbosity > 0) {
16821683
kern->last_kern_update = acl_kernel_if_get_time_us(kern);
16831684
kern->io.printf(
16841685
"No kernel updates in approximately 10 seconds for device %u",

0 commit comments

Comments
 (0)