函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\vsprintf.c Create Date:2022-07-27 07:09:26
Last Modify:2022-05-21 09:47:42 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:hex_string

函数原型:static __attribute__((__noinline__)) char *hex_string(char *buf, char *end, u8 *addr, struct printf_spec spec, const char *fmt)

返回类型:char

参数:

类型参数名称
char *buf
char *end
u8 *addr
struct printf_specspec
const char *fmt
1107  len等于1
1110  如果 width of output field 恒等于0则返回:buf
1114  如果check_pointer( & buf, end, addr, spec)则返回:buf
1118  :fmt[1]恒等于'C'
1119  separator等于':'
1120  退出
1121  :fmt[1]恒等于'D'
1122  separator等于'-'
1123  退出
1124  :fmt[1]恒等于'N'
1125  separator等于0
1126  退出
1127  默认
1128  separator等于' '
1129  退出
1132  如果 width of output field 大于0则len等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(int, width of output field , 64)
1135 i小于len循环
1136  如果buf小于endbuf等于hex_asc_hi(addr[i])
1138  buf先自加
1139  如果buf小于endbuf等于hex_asc_lo(addr[i])
1141  buf先自加
1143  如果separatori不等于len减1则
1144  如果buf小于endbuf等于separator
1146  buf先自加
1150  返回:buf
调用者
名称描述
pointerShow a '%p' thing. A kernel extension is that the '%p' is followed* by an extra set of alphanumeric characters that are extended format* specifiers.* Please update scripts/checkpatch.pl when adding/removing conversion* characters