summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/dumpbuf
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-03-12 20:23:58 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-03-12 20:23:58 +0000
commitdfb3c2b71f6d8d573bdadfce99d72ec7af1184a4 (patch)
tree3346f18f8902452f813df06c64349fb08b867394 /cpukit/libmisc/dumpbuf
parent2007-03-12 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-dfb3c2b71f6d8d573bdadfce99d72ec7af1184a4.tar.bz2
2007-03-12 Joel Sherrill <joel@OARcorp.com>
* libmisc/dumpbuf/dumpbuf.c, libmisc/dumpbuf/dumpbuf.h: Rename Dump_Buffer to rtems_print_buffer.
Diffstat (limited to 'cpukit/libmisc/dumpbuf')
-rw-r--r--cpukit/libmisc/dumpbuf/dumpbuf.c6
-rw-r--r--cpukit/libmisc/dumpbuf/dumpbuf.h14
2 files changed, 15 insertions, 5 deletions
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 <rtems/dumpbuf.h>
/*
- * 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
);