summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/error.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-05-09 17:59:40 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-05-09 17:59:40 +0000
commitf16ea9086875efdaf56eb64596d6c28c6c236dac (patch)
treec10d5d9ed5e21ce8ac20aab1aa88b7b3355a66d8 /cpukit/libcsupport/src/error.c
parent2007-05-09 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-f16ea9086875efdaf56eb64596d6c28c6c236dac.tar.bz2
2007-05-09 Joel Sherrill <joel.sherrill@OARcorp.com>
* libcsupport/src/error.c, sapi/include/rtems/config.h: Do not reference _Configuration_MP_table if multiprocessing is disabled.
Diffstat (limited to 'cpukit/libcsupport/src/error.c')
-rw-r--r--cpukit/libcsupport/src/error.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/error.c b/cpukit/libcsupport/src/error.c
index 38459e5eec..c94be59ad5 100644
--- a/cpukit/libcsupport/src/error.c
+++ b/cpukit/libcsupport/src/error.c
@@ -132,8 +132,10 @@ static int rtems_verror(
if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */
local_errno = errno;
- if (_System_state_Is_multiprocessing)
+ #if defined(RTEMS_MULTIPROCESSING)
+ if (_System_state_Is_multiprocessing)
fprintf(stderr, "[%" PRIu32 "] ", _Configuration_MP_table->node);
+ #endif
chars_written += vfprintf(stderr, printf_format, arglist);