]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu/dc: Use WARN_ON_ONCE for ASSERT
authorMichel Dänzer <mdaenzer@redhat.com>
Wed, 29 Apr 2020 16:28:01 +0000 (18:28 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Apr 2020 20:48:47 +0000 (16:48 -0400)
Once should generally be enough for diagnosing what lead up to it,
repeating it over and over can be pretty annoying.

Signed-off-by: Michel Dänzer <mdaenzer@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/os_types.h

index c34eba19860a32a9952f26ab094dd7266552c953..6d7bca562eec00cb2093edbf6d09e833a6382206 100644 (file)
 #define ASSERT(expr) ASSERT_CRITICAL(expr)
 
 #else
-#define ASSERT(expr) WARN_ON(!(expr))
+#define ASSERT(expr) WARN_ON_ONCE(!(expr))
 #endif
 
 #define BREAK_TO_DEBUGGER() ASSERT(0)