函数逻辑报告 |
Source Code:lib\vsprintf.c |
Create Date:2022-07-27 07:09:38 |
| Last Modify:2022-05-21 09:47:42 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:device_node_string
函数原型:static __attribute__((__noinline__)) char *device_node_string(char *buf, char *end, struct device_node *dn, struct printf_spec spec, const char *fmt)
返回类型:char
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| char * | buf | |
| char * | end | |
| struct device_node * | dn | |
| struct printf_spec | spec | |
| const char * | fmt |
| 1946 | static const struct printf_spec num_spec = { flags to number() = use lowercase in hex (must be 32 == 0x20) , width of output field = - 1, # of digits/chars = - 1, number base, 8, 10 or 16 only = 10, } |
| 1954 | width of output field 等于负1 |
| 1956 | 如果fmt[0]不等于'F'则返回:Be careful: error messages must fit into the given buffer. |
| 1959 | 如果非IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_OF)则返回:Be careful: error messages must fit into the given buffer. |
| 1966 | fmt自加 |
| 1967 | 如果fmt[0]恒等于'\0'或strcspn - Calculate the length of the initial substring of @s which does not contain letters in @reject*@s: The string to be searched*@reject: The string to avoid大于0则fmt等于"f" |
| 1972 | 如果pass则 |
| 1975 | buf自加 |
| 1980 | buf等于fwnode_full_name_string(of_fwnode_handle(dn), buf, end) |
| 1982 | 退出 |
| 1984 | p等于fwnode_get_name(of_fwnode_handle(dn)) |
| 1985 | precision等于 # of digits/chars |
| 1988 | # of digits/chars 等于precision |
| 1989 | 退出 |
| 1994 | p等于fwnode_get_name(of_fwnode_handle(dn)) |
| 1998 | 退出 |
| 2000 | tbuf[0]等于如果of_node_check_flag(dn, (and properties) allocated via kmalloc )则'D'否则'-' |
| 2001 | tbuf[1]等于如果of_node_check_flag(dn, detached from the device tree )则'd'否则'-' |
| 2002 | tbuf[2]等于如果of_node_check_flag(dn, device already created )则'P'否则'-' |
| 2003 | tbuf[3]等于如果of_node_check_flag(dn, platform bus created for children )则'B'否则'-' |
| 2004 | tbuf[4]等于0 |
| 2006 | 退出 |
| 2008 | ret等于of_property_read_string(dn, "compatible", & p) |
| 2011 | 退出 |
| 2023 | 退出 |
| 2024 | 默认 |
| 2025 | 退出 |
| 名称 | 描述 |
|---|---|
| pointer | Show 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 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |