Changeset 508 for trunk


Ignore:
Timestamp:
Aug 25, 2018, 6:30:27 PM (6 years ago)
Author:
viala@…
Message:

[syscall] Use assert instead of printk+hal_core_sleep.

Location:
trunk/kernel/syscalls
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/syscalls/sys_barrier.c

    r457 r508  
    120120        }
    121121        ////////
    122             default:
    123         {
    124             printk("\n[PANIC] in %s : illegal operation type\n", __FUNCTION__ );
    125             hal_core_sleep();
     122        default: {
     123            assert ( false, "illegal operation type <%x>", operation );
    126124        }
    127125        }  // end switch
  • trunk/kernel/syscalls/sys_condvar.c

    r457 r508  
    186186                }
    187187        /////////
    188             default:
    189         {
    190             printk("\n[PANIC] in %s : illegal operation type\n", __FUNCTION__ );
    191             hal_core_sleep();
     188        default: {
     189            assert ( false, "illegal operation type <%x>\n", operation );
    192190        }
    193191        }   // end switch
  • trunk/kernel/syscalls/sys_mutex.c

    r457 r508  
    153153        }
    154154        ////////
    155             default:
    156         {
    157             printk("\n[PANIC] in %s : illegal operation type\n", __FUNCTION__ );
    158                     hal_core_sleep();
     155        default: {
     156            assert ( false, "illegal operation type <%x>", operation );
    159157        }
    160158        }
Note: See TracChangeset for help on using the changeset viewer.