/** * @file * * @brief Dump Buffer * @ingroup libmisc_dumpbuf Print Memory Buffer */ /* * COPYRIGHT (c) 1997-2007. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may in * the file LICENSE in this distribution or at * http://www.rtems.com/license/LICENSE. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include #include #include #include #include /* * Put the body below rtems_print_buffer so it won't get inlined. */ static inline void Dump_Line( const unsigned char *buffer, int length ); void rtems_print_buffer( const unsigned char *buffer, int length ) { int i, mod, max; if ( !length ) return; mod = length % 16; max = length - mod; for ( i=0 ; i