RTEMS  5.0.0
Files | Functions
Print Memory Buffer

Files

file  dumpbuf.c
 Dump Buffer.
 

Functions

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

Detailed Description

Function Documentation

◆ rtems_print_buffer()

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

Print memory buffer.

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.