Ignore:
Timestamp:
Jun 29, 2009, 6:38:40 PM (15 years ago)
Author:
rosiere
Message:

1) Debug_Signal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Common/include/Debug.h

    r118 r129  
    8181      debug_init();                                                     \
    8282                                                                        \
    83       if (debug_test_simulation_time)                                   \
    84         if ((debug == DEBUG_ALL ) or                                    \
    85             (DEBUG_ ## level == DEBUG_NONE) or                          \
    86             (( DEBUG_ ## level <= debug) and                            \
    87              ( morpheo::behavioural::_model.get_debug(NAME_ ## component))) ) \
    88           {                                                             \
    89             if (DEBUG_ ## level <= DEBUG_INFO)                          \
    90               {                                                         \
    91                 msg("%s ",MSG_INFORMATION);                             \
    92               }                                                         \
    93             else                                                        \
    94               {                                                         \
    95                 msg("%s ",MSG_DEBUG);                                   \
    96               }                                                         \
     83      if (debug_test_simulation_time and                                \
     84          ((debug == DEBUG_ALL ) or                                     \
     85           (( DEBUG_ ## level <= debug) and                             \
     86            ( morpheo::behavioural::_model.get_debug(NAME_ ## component))))) \
     87        {                                                               \
     88          if (DEBUG_ ## level <= DEBUG_INFO)                            \
     89            {                                                           \
     90              msg("%s ",MSG_INFORMATION);                               \
     91            }                                                           \
     92          else                                                          \
     93            {                                                           \
     94              msg("%s ",MSG_DEBUG);                                     \
     95            }                                                           \
    9796                                                                        \
    98             if (debug >= DEBUG_ALL )                                    \
    99               {                                                         \
    100                 switch (DEBUG_ ## level)                                \
    101                   {                                                     \
    102                   case DEBUG_NONE  : msg(_("(none       ) ")); break;   \
    103                   case DEBUG_INFO  : msg(_("(information) ")); break;   \
    104                   case DEBUG_TRACE : msg(_("(trace      ) ")); break;   \
    105                   case DEBUG_FUNC  : msg(_("(function   ) ")); break;   \
    106                   case DEBUG_ALL   : msg(_("(all        ) ")); break;   \
    107                   default          : msg(_("(undefine   ) ")); break;   \
    108                   }                                                     \
    109               }                                                         \
    110             if (debug >= DEBUG_FUNC)                                    \
    111               {                                                         \
    112                 msg(  "<%s> " ,func);                                   \
    113                 msg(_("In file %s, "),__FILE__);                        \
    114                 msg(_("at line %d " ),__LINE__);                        \
    115                 msg(  ": " );                                           \
    116               }                                                         \
    117             msg(str);                                                   \
    118             msg("\n");                                                  \
    119           }                                                             \
     97          if (debug >= DEBUG_FUNC)                                      \
     98            {                                                           \
     99              msg(  "<%s> " ,func);                                     \
     100              msg(_("In file %s, "),__FILE__);                          \
     101              msg(_("at line %d " ),__LINE__);                          \
     102              msg(  ": " );                                             \
     103            }                                                           \
     104          msg(str);                                                     \
     105          msg("\n");                                                    \
     106        }                                                               \
    120107    } while(0)
    121108
Note: See TracChangeset for help on using the changeset viewer.