diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-07-30 22:36:32 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-07-30 22:36:32 +0000 |
commit | 0aea082fe07cad72dd8120d307c22bf015378a79 (patch) | |
tree | d261f225130072dbd0ea32e3d1efbf983665f764 /cpukit/libfs/src/imfs/imfs_debug.c | |
parent | 2010-07-30 Gedare Bloom <giddyup44@yahoo.com> (diff) | |
download | rtems-0aea082fe07cad72dd8120d307c22bf015378a79.tar.bz2 |
2010-07-30 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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.
Diffstat (limited to '')
-rw-r--r-- | cpukit/libfs/src/imfs/imfs_debug.c | 20 |
1 files changed, 5 insertions, 15 deletions
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 <assert.h> -#endif #include <string.h> #include <fcntl.h> #include <errno.h> @@ -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; |