Changeset 395


Ignore:
Timestamp:
Aug 17, 2017, 11:20:49 AM (7 years ago)
Author:
max@…
Message:

Use panic().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/vfs/vfs.c

    r380 r395  
    166166    {
    167167        ctx = NULL;
    168                 printk("\n[PANIC] in %s : illegal file system type = %d\n", __FUNCTION__ , fs_type );
    169         hal_core_sleep();
     168                panic("illegal file system type = %d" , fs_type );
    170169    }
    171170
     
    244243    if( inode->refcount )
    245244    {
    246         printk("\n[PANIC] in %s : inode refcount non zero\n", __FUNCTION__ );
    247         hal_core_sleep();
     245        panic("inode refcount non zero");
    248246    }       
    249247
     
    447445    {
    448446        ctx = NULL;
    449         printk("\n[PANIC] in %s : undefined file system type\n", __FUNCTION__ );
    450         hal_core_sleep();
     447        panic("undefined file system type");
    451448    }
    452449
     
    499496    if( dentry->refcount )
    500497    {
    501         printk("\n[PANIC] in %s : dentry refcount non zero\n", __FUNCTION__ );
    502         hal_core_sleep();
     498        panic("dentry refcount non zero");
    503499    }       
    504500
     
    553549    if( file->refcount )
    554550    {
    555         printk("\n[PANIC] in %s : file refcount non zero\n", __FUNCTION__ );
    556         hal_core_sleep();
     551        panic("file refcount non zero");
    557552    }       
    558553
     
    911906                    char   * path )
    912907{
    913     printk("\n[PANIC] %s non implemented\n", __FUNCTION__ );
    914     hal_core_sleep();
     908    panic("not implemented");
    915909    return 0;
    916910}  // vfs_unlink()
     
    920914                  vfs_stat_t * k_stat )
    921915{
    922     printk("\n[PANIC] %s non implemented\n", __FUNCTION__ );
    923     hal_core_sleep();
     916    panic("not implemented");
    924917    return 0;
    925918}
     
    929922                     vfs_dirent_t * k_dirent )
    930923{
    931     printk("\n[PANIC] %s non implemented\n", __FUNCTION__ );
    932     hal_core_sleep();
     924    panic("not implemented");
    933925    return 0;
    934926}
     
    939931                   uint32_t   mode )
    940932{
    941     printk("\n[PANIC] %s non implemented\n", __FUNCTION__ );
    942     hal_core_sleep();
     933    panic("not implemented");
    943934    return 0;
    944935}
     
    948939                   char   * path )
    949940{
    950     printk("\n[PANIC] %s non implemented\n", __FUNCTION__ );
    951     hal_core_sleep();
     941    panic("not implemented");
    952942    return 0;
    953943}
     
    985975    }
    986976
    987     printk("\n[PANIC] %s non fully implemented\n", __FUNCTION__ );
    988     hal_core_sleep();
     977    panic("not fully implemented");
    989978    return 0;
    990979}
     
    10181007
    10191008   
    1020     printk("\n[PANIC] %s non fully implemented\n", __FUNCTION__ );
    1021     hal_core_sleep();
     1009    panic("not fully implemented");
    10221010    return 0;
    10231011}
     
    10281016                    uint32_t rights )
    10291017{
    1030     printk("\n[PANIC] in %s : not implemented yet\n", __FUNCTION__ );
    1031     hal_core_sleep();
     1018    panic("not implemented");
    10321019    return 0;
    10331020}
Note: See TracChangeset for help on using the changeset viewer.