# Extra debugging routines
.if ${USE_SYSDEBUG} != "no"
SRCS+= debug.c
+CPPFLAGS+= -DUSE_SYSDEBUG
.endif
# These come last, so the profiling buffer is at the end of the data segment
#endif
}
-#if DEBUG_SERIAL
+#ifdef DEBUG_SERIAL
PUBLIC void ser_putc(char c)
{
int i;
TMR_NEVER : clock_timers->tmr_exp_time;
}
-#if DEBUG_SERIAL
+#ifdef DEBUG_SERIAL
if (do_serial_debug)
do_ser_debug();
#endif
/* DEBUG_IPCSTATS collects information on who sends messages to whom. */
#define DEBUG_IPCSTATS 0
-#if USE_SMALL
+#if !USE_SYSDEBUG
#undef DEBUG_SERIAL
#undef DEBUG_ENABLE_IPC_WARNINGS
#endif
if(!value || system_hz < 2 || system_hz > 50000) /* sanity check */
system_hz = DEFAULT_HZ;
-#if DEBUG_SERIAL
+#ifdef DEBUG_SERIAL
/* Intitialize serial debugging */
value = env_get(SERVARNAME);
if(value && atoi(value) == 0) {
* to the output driver if an END_OF_KMESS is encountered.
*/
if (c != END_OF_KMESS) {
-#if DEBUG_SERIAL
+#ifdef DEBUG_SERIAL
if (do_serial_debug) {
if(c == '\n')
ser_putc('\r');
.if ${COMPILER_TYPE} == "gnu" && defined(MKSMALL) && ${MKSMALL} == "yes"
DBG= -Os
-CFLAGS+= -DNDEBUG=1 -DUSE_SMALL=1
+CFLAGS+= -DNDEBUG
.endif