Changeset 973 for trunk


Ignore:
Timestamp:
Apr 15, 2015, 4:02:06 PM (10 years ago)
Author:
cfuguet
Message:

improve debug messages

  • replace the BDEV_DEBUG define by the SOCLIB_MODULE_DEBUG define to allow the use of -b on the soclib-cc command.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/vci_block_device_tsar/caba/source/src/vci_block_device_tsar.cpp

    r971 r973  
    3333#include "block_device_tsar.h"
    3434
    35 #define DEBUG_BDEV   0
    36 
    3735namespace soclib { namespace caba {
    3836
     
    114112        if (p_vci_target.rspack.read() )
    115113        {
    116 #if DEBUG_BDEV
     114#if SOCLIB_MODULE_DEBUG
    117115std::cout << "  <BDEV_TGT WRITE_BUFFER> value = " << r_tdata.read() << std::endl;
    118116#endif
     
    127125        if (p_vci_target.rspack.read() )
    128126        {
    129 #if DEBUG_BDEV
     127#if SOCLIB_MODULE_DEBUG
    130128std::cout << "  <BDEV_TGT WRITE_BUFFER_EXT> value = " << r_tdata.read() << std::endl;
    131129#endif
     
    140138        if (p_vci_target.rspack.read() )
    141139        {
    142 #if DEBUG_BDEV
     140#if SOCLIB_MODULE_DEBUG
    143141std::cout << "  <BDEV_TGT WRITE_COUNT> value = " << r_tdata.read() << std::endl;
    144142#endif
     
    153151        if (p_vci_target.rspack.read() )
    154152        {
    155 #if DEBUG_BDEV
     153#if SOCLIB_MODULE_DEBUG
    156154std::cout << "  <BDEV_TGT WRITE_LBA> value = " << r_tdata.read() << std::endl;
    157155#endif
     
    170168            {
    171169
    172 #if DEBUG_BDEV
     170#if SOCLIB_MODULE_DEBUG
    173171std::cout << "  <BDEV_TGT WRITE_OP> value = READ" << std::endl;
    174172#endif
     
    180178            {
    181179
    182 #if DEBUG_BDEV
     180#if SOCLIB_MODULE_DEBUG
    183181std::cout << "  <BDEV_TGT WRITE_OP> value = WRITE" << std::endl;
    184182#endif
     
    189187            {
    190188
    191 #if DEBUG_BDEV
     189#if SOCLIB_MODULE_DEBUG
    192190std::cout << "  <BDEV_TGT WRITE_OP> value = SOFT RESET" << std::endl;
    193191#endif
     
    204202        {
    205203
    206 #if DEBUG_BDEV
     204#if SOCLIB_MODULE_DEBUG
    207205std::cout << "  <BDEV_TGT WRITE_IRQEN> value = " << r_tdata.read() << std::endl;
    208206#endif
     
    709707    {
    710708
    711 #if DEBUG_BDEV
     709#if SOCLIB_MODULE_DEBUG
    712710        if (p_irq != true)
    713711            std::cout << "  <BDEV_INI send IRQ>" << std::endl;
Note: See TracChangeset for help on using the changeset viewer.