RTEMS 6.3
Loading...
Searching...
No Matches
Print Memory Buffer

Files

file  cpukit/libmisc/dumpbuf/dumpbuf.c
 Dump Buffer.

Functions

void rtems_print_buffer (const unsigned char *buffer, int length)
 Print memory buffer.

Detailed Description

Function Documentation

◆ rtems_print_buffer()

void rtems_print_buffer ( const unsigned char * buffer,
const int length )

Print memory buffer.

Print length bytes from buffer, both in hex and ASCII. Printing will be done in rows, each showing BYTES_PER_ROW bytes.

This method prints length bytes beginning at buffer in a nice format similar to what one would expect from a debugger or ROM monitor.

Parameters
[in]bufferis the address of the buffer
[in]lengthis the length of the buffer

Print memory buffer.

Non-printable chars will appear as dots.

Parameters
bufferThe buffer we'll print.
lengthAmount of bytes from buffer we'll print. This can't be unsigned because we don't have a way to check if we're erroneously getting a negative length.