Changeset 492 for trunk/kernel/libk


Ignore:
Timestamp:
Aug 22, 2018, 11:55:48 PM (6 years ago)
Author:
viala@…
Message:

Refactoring assert calling to conform with new assert macro.

Made with this command for the general case.
find ./kernel/ hal/ -name "*.c" | xargs sed -i -e '/assert(/ s/,[ ]*FUNCTION[ ]*,/,/'

And some done by hand.

Location:
trunk/kernel/libk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/libk/grdxt.c

    r473 r492  
    165165    if( (key >> (w1 + w2 + w3)) != 0 )
    166166    {
    167         assert( false , __FUNCTION__ ,
     167        assert( false ,
    168168        "key value %x exceed (%d + %d + %d) bits", key , w1 , w2 , w3 );
    169169    }
     
    237237    if( (key >> (w1 + w2 + w3)) != 0 )
    238238    {
    239         assert( false , __FUNCTION__ ,
     239        assert( false ,
    240240        "key value %x exceed (%d + %d + %d) bits", key , w1 , w2 , w3 );
    241241    }
     
    279279    if( (key >> (w1 + w2 + w3)) != 0 )
    280280    {
    281         assert( false , __FUNCTION__ ,
     281        assert( false ,
    282282        "key value %x exceed (%d + %d + %d) bits", key , w1 , w2 , w3 );
    283283    }
     
    322322    if( (start_key >> (w1 + w2 + w3)) != 0 )
    323323    {
    324         assert( false , __FUNCTION__ ,
     324        assert( false ,
    325325        "start_key value %x exceed (%d + %d + %d) bits", start_key , w1 , w2 , w3 );
    326326    }
  • trunk/kernel/libk/htab.c

    r457 r492  
    9999    else
    100100    {
    101         assert( false , __FUNCTION__ , "undefined item type\n" );
     101        assert( false , "undefined item type\n" );
    102102    }
    103103
  • trunk/kernel/libk/xhtab.c

    r457 r492  
    139139    else
    140140    {
    141         assert( false , __FUNCTION__ , "illegal item type\n" );
     141        assert( false , "illegal item type\n" );
    142142    }
    143143
Note: See TracChangeset for help on using the changeset viewer.