From dfb3c2b71f6d8d573bdadfce99d72ec7af1184a4 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 12 Mar 2007 20:23:58 +0000 Subject: [PATCH] 2007-03-12 Joel Sherrill * libmisc/dumpbuf/dumpbuf.c, libmisc/dumpbuf/dumpbuf.h: Rename Dump_Buffer to rtems_print_buffer. --- cpukit/ChangeLog | 5 +++++ cpukit/libmisc/dumpbuf/dumpbuf.c | 6 +++--- cpukit/libmisc/dumpbuf/dumpbuf.h | 14 ++++++++++++-- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 4089f9b97a..da080ecc2e 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2007-03-12 Joel Sherrill + + * libmisc/dumpbuf/dumpbuf.c, libmisc/dumpbuf/dumpbuf.h: Rename + Dump_Buffer to rtems_print_buffer. + 2007-03-12 Joel Sherrill * score/src/heapallocatealigned.c, score/src/threadqrequeue.c: Correct diff --git a/cpukit/libmisc/dumpbuf/dumpbuf.c b/cpukit/libmisc/dumpbuf/dumpbuf.c index 120a464a90..c5c4746c16 100644 --- a/cpukit/libmisc/dumpbuf/dumpbuf.c +++ b/cpukit/libmisc/dumpbuf/dumpbuf.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1997. + * COPYRIGHT (c) 1997-2007. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may in @@ -19,7 +19,7 @@ #include /* - * Put the body below Dump_Buffer so it won't get inlined. + * Put the body below rtems_print_buffer so it won't get inlined. */ static inline void Dump_Line( @@ -27,7 +27,7 @@ static inline void Dump_Line( int length ); -void Dump_Buffer( +void rtems_print_buffer( unsigned char *buffer, int length ) diff --git a/cpukit/libmisc/dumpbuf/dumpbuf.h b/cpukit/libmisc/dumpbuf/dumpbuf.h index 965d1297d0..48d76c1a09 100644 --- a/cpukit/libmisc/dumpbuf/dumpbuf.h +++ b/cpukit/libmisc/dumpbuf/dumpbuf.h @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1997. + * COPYRIGHT (c) 1997-2007. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may in @@ -16,7 +16,17 @@ extern "C" { #endif -void Dump_Buffer( +/** + * @brief Print Memory Buffer + * + * This method prints @a length bytes beginning at @a buffer in + * a nice format similar to what one would expect from a debugger + * or ROM monitor. + * + * @param[in] buffer is the address of the buffer + * @param[in] length is the length of the buffer + */ +void rtems_print_buffer( unsigned char *buffer, int length );