diff --git a/scst/include/scst_debug.h b/scst/include/scst_debug.h index c0fffd49c..e9ba2b6c3 100644 --- a/scst/include/scst_debug.h +++ b/scst/include/scst_debug.h @@ -72,7 +72,10 @@ typeof(condition) __ret_warn_once = (condition); \ \ if (unlikely(__ret_warn_once)) \ - __warned = 1; \ + if (!__warned) { \ + WARN_ON(1); \ + __warned = 1; \ + } \ unlikely(__ret_warn_once); \ }) #endif