hexdump() input data is const

This commit is contained in:
dhewg 2010-07-04 17:56:56 +02:00
parent aaba483ab7
commit 87c0f33221
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ static char ascii(char s) {
return s; return s;
} }
void hexdump(void *d, int len) { void hexdump(const void *d, int len) {
u8 *data; u8 *data;
int i, off; int i, off;
data = (u8*)d; data = (u8*)d;

View File

@ -181,7 +181,7 @@ void memcpy16(void *dst, void *src, u32 size);
void memset8(void *dst, u8 value, u32 size); void memset8(void *dst, u8 value, u32 size);
void memcpy8(void *dst, void *src, u32 size); void memcpy8(void *dst, void *src, u32 size);
void hexdump(void *d, int len); void hexdump(const void *d, int len);
int sprintf(char *str, const char *fmt, ...); int sprintf(char *str, const char *fmt, ...);
void udelay(u32 d); void udelay(u32 d);
void panic(u8 v); void panic(u8 v);