diff options
Diffstat (limited to 'fs/ext2.c')
| -rw-r--r-- | fs/ext2.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -120,7 +120,8 @@ int ext2_check(uint8_t *ram) ram_read(ptr,&super,sizeof(super),1); if(super.ext2_sig!=0xef53){ - panic(FOOLOS_MODULE_NAME,"no ext2 signature found, where ram-image expected!"); + log(FOOLOS_MODULE_NAME,FOOLOS_LOG_INFO,"addr: 0x%08X",ram); + panic(FOOLOS_MODULE_NAME,"no ext2 signature found, where ram-image expected"); } } @@ -134,7 +135,11 @@ ext2_inode ext2_get_inode(uint8_t *ram,int inode_num) uint8_t *ptr=ram+1024; ram_read(ptr,&super,sizeof(super),1); - if(super.ext2_sig!=0xef53)panic(FOOLOS_MODULE_NAME,"no ext2 signature found, where ram-image expected!"); + if(super.ext2_sig!=0xef53) + { + log(FOOLOS_MODULE_NAME,FOOLOS_LOG_INFO,"addr: 0x%08X",ram); + panic(FOOLOS_MODULE_NAME,"no ext2 signature found, where ram-image expected!"); + } int block_group=(inode_num-1)/super.inodes_per_group; |
