libpayload: hexdump.c: Change type of length argument to size_t

Representing a (non-negative) length with a signed integer is not
optimal, so change its type to `size_t`.

Change-Id: Ic0c2b7e081ba32d917409568ee53007d9ab7f8f3
Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-on: http://review.coreboot.org/4768
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
Paul Menzel 2014-01-21 14:30:51 +01:00 committed by Patrick Georgi
parent d0cdcaeb08
commit 0f027e421a
2 changed files with 2 additions and 2 deletions

View File

@ -302,7 +302,7 @@ long int labs(long int j);
long long int llabs(long long int j);
u8 bin2hex(u8 b);
u8 hex2bin(u8 h);
void hexdump(void *memory, int length);
void hexdump(void *memory, size_t length);
void fatal(const char *msg) __attribute__ ((noreturn));
/** @} */

View File

@ -29,7 +29,7 @@
#include <libpayload.h>
void hexdump(void *memory, int length)
void hexdump(void *memory, size_t length)
{
int i;
uint8_t *m;