Skip to content

Commit

Permalink
drm/amdgpu/dc: Use WARN_ON_ONCE for ASSERT
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michel Dänzer authored and Alex Deucher committed May 1, 2020
1 parent f7b5289 commit f33a6de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/display/dc/os_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
#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)
Expand Down

0 comments on commit f33a6de

Please sign in to comment.