Changeset 973


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.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/reconfiguration/modules/vci_xicu/caba/source/src/vci_xicu.cpp

    r881 r973  
    449449
    450450#if SOCLIB_MODULE_DEBUG
    451 if ( b ) std::cout << "p_irq[" << i << "] = " << b << std::endl;
     451if ( b && !p_irq[i].read())
     452{
     453    std::cout << "[" << name() << "] set p_irq[" << i << "] / "
     454              << std::hex
     455              << " msk_pti[" << i << "] = " << r_msk_pti[i] << " / "
     456              << " pti_pending = " << r_pti_pending << " / "
     457              << " msk_wti[" << i << "] = " << r_msk_wti[i] << " / "
     458              << " wti_pending = " << r_wti_pending << " / "
     459              << " msk_hwi[" << i << "] = " << r_msk_hwi[i] << " / "
     460              << " hwi_pending = " << r_hwi_pending
     461              << std::dec << std::endl;
     462}
     463if ( !b && p_irq[i].read())
     464{
     465    std::cout << "[" << name() << "] unset p_irq[" << i << "]" << std::endl;
     466}
    452467#endif
    453468        p_irq[i] = b;
  • 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.