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

[syscall] Use assert instead of printk+hal_core_sleep.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.