Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/printk.h
| Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | enum { | ||||
| DUMP_PREFIX_ADDRESS, | DUMP_PREFIX_ADDRESS, | ||||
| DUMP_PREFIX_OFFSET | DUMP_PREFIX_OFFSET | ||||
| }; | }; | ||||
| int __lkpi_hexdump_printf(void *, const char *, ...) __printflike(2, 3); | int __lkpi_hexdump_printf(void *, const char *, ...) __printflike(2, 3); | ||||
| void lkpi_hex_dump(int(*)(void *, const char *, ...), void *arg1, | void lkpi_hex_dump(int(*)(void *, const char *, ...), void *arg1, | ||||
| const char *, const char *, const int, const int, const int, | const char *, const char *, const int, const int, const int, | ||||
| const void *, size_t, const bool); | const void *, size_t, const bool, const bool); | ||||
| static inline void | static inline void | ||||
| print_hex_dump(const char *level, const char *prefix_str, | print_hex_dump(const char *level, const char *prefix_str, | ||||
| const int prefix_type, const int rowsize, const int groupsize, | const int prefix_type, const int rowsize, const int groupsize, | ||||
| const void *buf, size_t len, const bool ascii) | const void *buf, size_t len, const bool ascii) | ||||
| { | { | ||||
| lkpi_hex_dump(__lkpi_hexdump_printf, NULL, level, prefix_str, prefix_type, | lkpi_hex_dump(__lkpi_hexdump_printf, NULL, level, prefix_str, prefix_type, | ||||
| rowsize, groupsize, buf, len, ascii); | rowsize, groupsize, buf, len, ascii, true); | ||||
| } | } | ||||
| static inline void | static inline void | ||||
| print_hex_dump_bytes(const char *prefix_str, const int prefix_type, | print_hex_dump_bytes(const char *prefix_str, const int prefix_type, | ||||
| const void *buf, size_t len) | const void *buf, size_t len) | ||||
| { | { | ||||
| print_hex_dump(NULL, prefix_str, prefix_type, 16, 1, buf, len, 0); | print_hex_dump(NULL, prefix_str, prefix_type, 16, 1, buf, len, 0); | ||||
| } | } | ||||
| Show All 36 Lines | |||||