mirror of
https://github.com/fail0verflow/mini.git
synced 2024-11-24 04:09:18 +01:00
hexdump() input data is const
This commit is contained in:
parent
aaba483ab7
commit
87c0f33221
2
utils.c
2
utils.c
@ -25,7 +25,7 @@ static char ascii(char s) {
|
||||
return s;
|
||||
}
|
||||
|
||||
void hexdump(void *d, int len) {
|
||||
void hexdump(const void *d, int len) {
|
||||
u8 *data;
|
||||
int i, off;
|
||||
data = (u8*)d;
|
||||
|
2
utils.h
2
utils.h
@ -181,7 +181,7 @@ void memcpy16(void *dst, void *src, u32 size);
|
||||
void memset8(void *dst, u8 value, 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, ...);
|
||||
void udelay(u32 d);
|
||||
void panic(u8 v);
|
||||
|
Loading…
Reference in New Issue
Block a user