Changeset b183865e in mainline


Ignore:
Timestamp:
2005-11-09T14:12:34Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2ccd275
Parents:
e2ec980f
Message:

remove NDEBUG, replace it by ~CONFIG_DEBUG
set CONFIG_DEBUG = y

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    re2ec980f rb183865e  
    6363include genarch/Makefile.inc
    6464
    65 ifeq ($(CONFIG_DEBUG),n)
    66         DEFS += -DNDEBUG
     65ifeq ($(CONFIG_DEBUG),y)
     66        DEFS += -DCONFIG_DEBUG
    6767endif
    6868ifeq ($(CONFIG_DEBUG_SPINLOCK),y)
  • Makefile.config

    re2ec980f rb183865e  
    2424#
    2525
    26 CONFIG_DEBUG = n
     26CONFIG_DEBUG = y
    2727CONFIG_DEBUG_SPINLOCK = y
    2828
  • generic/include/debug.h

    re2ec980f rb183865e  
    3535/** Debugging ASSERT macro
    3636 *
    37  * If NDEBUG is not set, the ASSERT() macro
     37 * If CONFIG_DEBUG is set, the ASSERT() macro
    3838 * evaluates expr and if it is false raises
    3939 * kernel panic.
     
    4242 *
    4343 */
    44 #ifndef NDEBUG
     44#ifdef CONFIG_DEBUG
    4545#       define ASSERT(expr) if (!(expr)) { panic("assertion failed (%s)", #expr); }
    4646#else
  • generic/include/panic.h

    re2ec980f rb183865e  
    3030#define __PANIC_H__
    3131
    32 #ifndef NDEBUG
     32#ifdef CONFIG_DEBUG
    3333#       define panic(format, ...) panic_printf("Kernel panic in %s() at %s on line %d: " format, __FUNCTION__, __FILE__, __LINE__, ##__VA_ARGS__);
    3434#else
Note: See TracChangeset for help on using the changeset viewer.