|
#define | console_loglevel (console_printk[0]) |
|
#define | default_message_loglevel (console_printk[1]) |
|
#define | minimum_console_loglevel (console_printk[2]) |
|
#define | default_console_loglevel (console_printk[3]) |
|
#define | FW_BUG "[Firmware Bug]: " |
|
#define | FW_WARN "[Firmware Warn]: " |
|
#define | FW_INFO "[Firmware Info]: " |
|
#define | HW_ERR "[Hardware Error]: " |
|
#define | pr_fmt(fmt) fmt |
|
#define | pr_emerg(fmt,...) printk(KERN_EMERG pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | pr_alert(fmt,...) printk(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | pr_crit(fmt,...) printk(KERN_CRIT pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | pr_err(fmt,...) printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | pr_warning(fmt,...) printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | pr_warn pr_warning |
|
#define | pr_notice(fmt,...) printk(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | pr_info(fmt,...) printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | pr_cont(fmt,...) printk(KERN_CONT fmt, ##__VA_ARGS__) |
|
#define | pr_devel(fmt,...) no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | pr_debug(fmt,...) no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | printk_once(fmt,...) no_printk(fmt, ##__VA_ARGS__) |
|
#define | pr_emerg_once(fmt,...) printk_once(KERN_EMERG pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | pr_alert_once(fmt,...) printk_once(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | pr_crit_once(fmt,...) printk_once(KERN_CRIT pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | pr_err_once(fmt,...) printk_once(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | pr_warn_once(fmt,...) printk_once(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | pr_notice_once(fmt,...) printk_once(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | pr_info_once(fmt,...) printk_once(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | pr_cont_once(fmt,...) printk_once(KERN_CONT pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | pr_debug_once(fmt,...) no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | printk_ratelimited(fmt,...) no_printk(fmt, ##__VA_ARGS__) |
|
#define | pr_emerg_ratelimited(fmt,...) printk_ratelimited(KERN_EMERG pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | pr_alert_ratelimited(fmt,...) printk_ratelimited(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | pr_crit_ratelimited(fmt,...) printk_ratelimited(KERN_CRIT pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | pr_err_ratelimited(fmt,...) printk_ratelimited(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | pr_warn_ratelimited(fmt,...) printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | pr_notice_ratelimited(fmt,...) printk_ratelimited(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | pr_info_ratelimited(fmt,...) printk_ratelimited(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | pr_debug_ratelimited(fmt,...) no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) |
|
hex_dump_to_buffer - convert a blob of data to "hex ASCII" in memory : data blob to dump : number of bytes in the : number of bytes to print per line; must be 16 or 32 : number of bytes to print at a time (1, 2, 4, 8; default = 1) : where to put the converted data : total size of , including space for terminating NUL : include ASCII after the hex output
hex_dump_to_buffer() works on one "line" of output at a time, i.e., 16 or 32 bytes of input data converted to hex + ASCII output.
Given a buffer of u8 data, hex_dump_to_buffer() converts the input data to a hex + ASCII dump at the supplied memory location. The converted output is always NUL-terminated.
E.g.: hex_dump_to_buffer(frame->data, frame->len, 16, 1, linebuf, sizeof(linebuf), true);
example output buffer: 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f
Definition at line 83 of file hexdump.c.