Skip to content

Commit f33a6de

Browse files
Michel Dänzeralexdeucher
authored andcommitted
drm/amdgpu/dc: Use WARN_ON_ONCE for ASSERT
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 <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent f7b5289 commit f33a6de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/display/dc/os_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
#define ASSERT(expr) ASSERT_CRITICAL(expr)
109109

110110
#else
111-
#define ASSERT(expr) WARN_ON(!(expr))
111+
#define ASSERT(expr) WARN_ON_ONCE(!(expr))
112112
#endif
113113

114114
#define BREAK_TO_DEBUGGER() ASSERT(0)

0 commit comments

Comments
 (0)