Changeset 433 for trunk/kernel/devices


Ignore:
Timestamp:
Feb 14, 2018, 3:40:19 PM (6 years ago)
Author:
alain
Message:

blip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/devices/dev_txt.c

    r422 r433  
    117117    thread_t * this = CURRENT_THREAD;
    118118
    119 txt_dmsg("\n[DBG] %s : core[%x,%d] (thread %s) enters / cycle %d\n",
    120 __FUNCTION__, local_cxy, this->core->lid, thread_type_str(this->type), hal_time_stamp() );
     119#if CONFIG_DEBUG_DEV_TXT
     120uint32_t cycle = (uint32_t)hal_get_cycles();
     121if( CONFIG_DEBUG_DEV_TXT < cycle )
     122printk("\n[DBG] %s : thread %x enters / cycle %d\n",
     123__FUNCTION__, CURRENT_THREAD , cycle );
     124#endif
    121125
    122126    // check channel argument
     
    140144    chdev_register_command( dev_xp );
    141145
    142 txt_dmsg("\n[DBG] %s : core[%x,%d] (thread %s) exit / cycle %d\n",
    143 __FUNCTION__, local_cxy, this->core->lid, thread_type_str(this->type), hal_time_stamp() );
     146#if CONFIG_DEBUG_DEV_TXT
     147cycle = (uint32_t)hal_get_cycles();
     148if( CONFIG_DEBUG_DEV_TXT < cycle )
     149printk("\n[DBG] %s : thread %x exit / cycle %d\n",
     150__FUNCTION__, CURRENT_THREAD , cycle );
     151#endif
    144152
    145153    // return I/O operation status from calling thread descriptor
Note: See TracChangeset for help on using the changeset viewer.