Changeset 492 for trunk/kernel/syscalls


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/syscalls
Files:
3 edited

Legend:

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

    r457 r492  
    174174    pid_t         pid     = process->pid;
    175175
    176     assert( (CXY_FROM_PID( pid ) == local_cxy) , __FUNCTION__ ,
     176    assert( (CXY_FROM_PID( pid ) == local_cxy) ,
    177177    "must be called in the owner cluster\n");
    178178
    179     assert( (LTID_FROM_TRDID( this->trdid ) == 0) , __FUNCTION__ ,
     179    assert( (LTID_FROM_TRDID( this->trdid ) == 0) ,
    180180    "must be called by the main thread\n");
    181181
    182     assert( (args == NULL) , __FUNCTION__ ,
     182    assert( (args == NULL) ,
    183183    "args not supported yet\n" );
    184184
    185     assert( (envs == NULL) , __FUNCTION__ ,
     185    assert( (envs == NULL) ,
    186186    "args not supported yet\n" );
    187187
     
    252252    }
    253253
    254     assert( false , __FUNCTION__, "we should not execute this code" );
     254    assert( false , "we should not execute this code" );
    255255
    256256    return 0; 
  • trunk/kernel/syscalls/sys_read.c

    r469 r492  
    209209    {
    210210        nbytes = 0;
    211         assert( false , __FUNCTION__ , "file type %d non supported yet\n", type );
     211        assert( false , "file type %d non supported yet\n", type );
    212212    }
    213213
  • trunk/kernel/syscalls/sys_write.c

    r469 r492  
    173173    {
    174174        nbytes = 0;
    175         assert( false , __FUNCTION__ , "file type %d non supported\n", type );
     175        assert( false , "file type %d non supported\n", type );
    176176    }
    177177
Note: See TracChangeset for help on using the changeset viewer.