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>
Fri, 1 May 2020 13:24:40 +0000 (09:24 -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 c34eba1..6d7bca5 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)