From d75131569cb74faa2a75eb94b1a81e8c0fe7bb7f Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Thu, 25 Jun 2020 16:33:19 -0400 Subject: puzzles: clean up error messages Expands buffer size, and prints to LOGF. Change-Id: I6dbcf60152d69c928270023c550976b802269d95 --- apps/plugins/puzzles/rbassert.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/plugins/puzzles/rbassert.h') diff --git a/apps/plugins/puzzles/rbassert.h b/apps/plugins/puzzles/rbassert.h index f3fef84351..56142d633b 100644 --- a/apps/plugins/puzzles/rbassert.h +++ b/apps/plugins/puzzles/rbassert.h @@ -8,6 +8,6 @@ #define assert(p) ((void)0) #else -#define assert(e) ((e) ? (void)0 : fatal("assertion failed %s:%d", __FILE__, __LINE__)) +#define assert(e) ((e) ? (void)0 : fatal("assertion failed on %s line %d: " #e, __FILE__, __LINE__)) #endif /* NDEBUG */ -- cgit v1.2.3