From 42739de9fd31e7664b5026fca6df2a217795a7f5 Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Tue, 27 Aug 2013 09:03:01 +0200 Subject: [PATCH] foc: print line numbers in decimal on assert --- base-foc/include/util/assert.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/base-foc/include/util/assert.h b/base-foc/include/util/assert.h index d81f4e94c..43bc7f142 100644 --- a/base-foc/include/util/assert.h +++ b/base-foc/include/util/assert.h @@ -22,13 +22,13 @@ namespace Fiasco { #if 1 #define ASSERT(e, s) \ - do { if (!(e)) { \ - Fiasco::outstring(ESC_ERR s ESC_END "\n"); \ - Fiasco::outstring(__FILE__ ":"); \ - Fiasco::outhex32((int)__LINE__); \ - Fiasco::outstring("\n"); \ - enter_kdebug("ASSERT"); \ - } \ + do { if (!(e)) { \ + Fiasco::outstring(ESC_ERR s ESC_END "\n"); \ + Fiasco::outstring(__FILE__ ":"); \ + Fiasco::outdec(__LINE__); \ + Fiasco::outstring("\n"); \ + enter_kdebug("ASSERT"); \ + } \ } while(0) #else #define ASSERT(e, s) do { } while (0)