diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2019-01-08 20:09:33 -0800 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-01-09 08:26:20 +0100 |
commit | b71d0d733ed1360ff85be584373d7c4b6f495747 (patch) | |
tree | 48ce0165be0d06810e6b7e5b835e5f3857d09aa0 /include | |
parent | d79673c5766f29a96cc19218987f61e01c150b43 (diff) | |
download | barebox-b71d0d733ed1360ff85be584373d7c4b6f495747.tar.gz barebox-b71d0d733ed1360ff85be584373d7c4b6f495747.tar.xz |
printk: Pass groupsize to memory_display() in print_hex_dump()
Don't hardcode grouping data into 4-byte words in print_hex_dump()
implementation and instead pass 'groupsize' to memory_display(), since
that's what that parameter is for.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/printk.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/printk.h b/include/printk.h index aaad07552e..ab2c64cf3c 100644 --- a/include/printk.h +++ b/include/printk.h @@ -119,7 +119,7 @@ static inline void print_hex_dump(const char *level, const char *prefix_str, int prefix_type, int rowsize, int groupsize, const void *buf, size_t len, bool ascii) { - memory_display(buf, 0, len, 4, 0); + memory_display(buf, 0, len, groupsize, 0); } struct log_entry { |