Ignore:
Timestamp:
Apr 21, 2014, 5:29:40 AM (10 years ago)
Author:
alain
Message:

Reducing the number of log messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_kernel/irq_handler.c

    r297 r310  
    5656    unsigned int irq_id;
    5757    unsigned int irq_type;
    58     char*        irq_type_str[] = { "HWI", "WTI", "PTI" };
    5958
    6059    // get the highest priority active IRQ index
     
    8887
    8988#if GIET_DEBUG_IRQS // we don't take the TTY lock to avoid deadlocks
     89char* irq_type_str[] = { "HWI", "WTI", "PTI" };
    9090_puts("\n[IRQS DEBUG] Processor[");
    9191_putd(x);
     
    120120        else
    121121        {
    122             // we don't take the TTY lock to avoid deadlock
    123             _puts("\n[GIET ERROR] in _irq_demux() illegal ISR type on processor[");
    124             _putd(x);
    125             _puts(",");
    126             _putd(y);
    127             _puts(",");
    128             _putd(lpid);
    129             _puts("] at cycle ");
    130             _putd(_get_proctime() );
    131             _puts("\n  ");
    132             _puts(irq_type_str[irq_type] );
    133             _puts(" : irq_id = ");
    134             _putd(irq_id);
    135             _puts(" / isr_type = ");
    136             _putd(isr_type);
    137             _puts(" / channel = ");
    138             _putd(channel);
    139             _puts("\n");
    140             _exit();
     122            _printf("\n[GIET ERROR] in _irq_demux() :"
     123                    " illegal ISR type on processor[%d,%d,%d] at cycle %d\n"
     124                    " - irq_type = %d\n"
     125                    " - irq_id   = %d\n"
     126                    " - isr_type = %x\n",
     127                    x, y, lpid, _get_proctime(), irq_type, irq_id, isr_type );
    141128        }
    142129    }
Note: See TracChangeset for help on using the changeset viewer.