mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
hexdump: use const notation
Trivial fix: mark the buffer to hexdump as const so callers could avoid casting their const buffers when calling print_hex_dump(). The patch is really trivial and I suggest to consider it as a fix (it fixes GCC warnings) and push it to current tree. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
660ca5317d
commit
6a0ed91e36
@@ -145,9 +145,9 @@ EXPORT_SYMBOL(hex_dump_to_buffer);
|
||||
*/
|
||||
void print_hex_dump(const char *level, const char *prefix_str, int prefix_type,
|
||||
int rowsize, int groupsize,
|
||||
void *buf, size_t len, bool ascii)
|
||||
const void *buf, size_t len, bool ascii)
|
||||
{
|
||||
u8 *ptr = buf;
|
||||
const u8 *ptr = buf;
|
||||
int i, linelen, remaining = len;
|
||||
unsigned char linebuf[200];
|
||||
|
||||
|
Reference in New Issue
Block a user