From 0aea082fe07cad72dd8120d307c22bf015378a79 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 30 Jul 2010 22:36:32 +0000 Subject: 2010-07-30 Joel Sherrill * libcsupport/src/fstat.c, libcsupport/src/rmdir.c, libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_creat.c, libfs/src/imfs/imfs_debug.c, libfs/src/imfs/imfs_getchild.c, libfs/src/imfs/memfile.c: Add IMFS_assert. Clean up and remove all checks which are redundant with system call layer. Formatting. --- cpukit/libfs/src/imfs/imfs_debug.c | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'cpukit/libfs/src/imfs/imfs_debug.c') diff --git a/cpukit/libfs/src/imfs/imfs_debug.c b/cpukit/libfs/src/imfs/imfs_debug.c index bfc9de0eac..5b95a17c6a 100644 --- a/cpukit/libfs/src/imfs/imfs_debug.c +++ b/cpukit/libfs/src/imfs/imfs_debug.c @@ -15,9 +15,6 @@ #include "config.h" #endif -#if defined(RTEMS_DEBUG) - #include -#endif #include #include #include @@ -36,14 +33,11 @@ * * This routine prints the contents of the specified jnode. */ - void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { - #if defined(RTEMS_DEBUG) - assert( the_jnode ); - #endif + IMFS_assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); switch( the_jnode->type ) { @@ -104,7 +98,6 @@ void IMFS_print_jnode( * directory is encountered, then this routine will recurse to process * the subdirectory. */ - void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level @@ -115,11 +108,9 @@ void IMFS_dump_directory( IMFS_jnode_t *the_jnode; int i; - #if defined(RTEMS_DEBUG) - assert( the_directory ); - assert( level >= 0 ); - assert( the_directory->type == IMFS_DIRECTORY ); - #endif + IMFS_assert( the_directory ); + IMFS_assert( level >= 0 ); + IMFS_assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; @@ -152,7 +143,7 @@ void IMFS_dump( void ) fprintf(stdout, "*************** Dump of Entire IMFS ***************\n" ); fprintf(stdout, "/\n" ); IMFS_dump_directory( rtems_filesystem_root.node_access, 0 ); - fprintf(stdout, "*************** End of Dump ***************\n" ); + fprintf(stdout, "*************** End of Dump ***************\n" ); } /* @@ -162,7 +153,6 @@ void IMFS_dump( void ) * using the IMFS memory file type. * */ - int IMFS_memfile_maximum_size( void ) { return IMFS_MEMFILE_MAXIMUM_SIZE; -- cgit v1.2.3