mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-20 23:12:22 +08:00
cpukit/libmisc/dumpbuf/dumpbuf.c: Fix compilation warnings
Compiling dumpbuf.c causes the following warning to be issued: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] This happens because line_buffer is declared as unsigned. Closes #2411.
This commit is contained in:
committed by
Joel Sherrill
parent
28a870c47f
commit
41b5c915e3
@@ -80,7 +80,7 @@ void rtems_print_buffer(const unsigned char *buffer, const int length)
|
||||
static void Dump_Line(const unsigned char *buffer, const unsigned int length)
|
||||
{
|
||||
unsigned int i;
|
||||
static unsigned char line_buffer[ROW_LENGTH] = "";
|
||||
static char line_buffer[ROW_LENGTH] = "";
|
||||
size_t tmp_len;
|
||||
|
||||
/* Output the hex value of each byte. */
|
||||
|
||||
Reference in New Issue
Block a user