diff options
author | Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> | 2008-07-11 10:07:00 +0000 |
---|---|---|
committer | Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> | 2008-07-11 10:07:00 +0000 |
commit | 224aebb3b8ceb936e333e4c9b71bfb95737f4c5e (patch) | |
tree | 6c88f335e66565339db5fcbd0f330fc1ada4608e /cpukit/include/rtems | |
parent | made buffer for write calls constant (diff) | |
download | rtems-224aebb3b8ceb936e333e4c9b71bfb95737f4c5e.tar.bz2 |
added BSP to m68k
adapted PPC exception code
Diffstat (limited to 'cpukit/include/rtems')
-rw-r--r-- | cpukit/include/rtems/status-checks.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/cpukit/include/rtems/status-checks.h b/cpukit/include/rtems/status-checks.h index 7c7754f7b0..f62289fe4d 100644 --- a/cpukit/include/rtems/status-checks.h +++ b/cpukit/include/rtems/status-checks.h @@ -34,14 +34,20 @@ extern "C" { #endif /* RTEMS_STATUS_CHECKS_USE_PRINTK */ #endif /* DEBUG_PRINT */ #else /* DEBUG */ + #ifdef DEBUG_PRINT + #warning DEBUG_PRINT was defined, but DEBUG was undefined + #undef DEBUG_PRINT + #endif /* DEBUG_PRINT */ #define DEBUG_PRINT( fmt, ...) #endif /* DEBUG */ #ifndef SYSLOG_PRINT #ifdef RTEMS_STATUS_CHECKS_USE_PRINTK - #define SYSLOG_PRINT( fmt, ...) printk( fmt, ##__VA_ARGS__) + #define SYSLOG_PRINT( fmt, ...) \ + printk( fmt, ##__VA_ARGS__) #else /* RTEMS_STATUS_CHECKS_USE_PRINTK */ - #define SYSLOG_PRINT( fmt, ...) printf( fmt, ##__VA_ARGS__) + #define SYSLOG_PRINT( fmt, ...) \ + printf( fmt, ##__VA_ARGS__) #endif /* RTEMS_STATUS_CHECKS_USE_PRINTK */ #endif /* SYSLOG_PRINT */ @@ -177,7 +183,7 @@ extern "C" { do { \ rv = val; \ SYSLOG_ERROR( "RV = %i: %s\n", rv, hint ); \ - goto label; + goto label; \ } while (0) #ifdef __cplusplus |