Function report |
Source Code:lib\vsprintf.c |
Create Date:2022-07-28 06:12:09 |
| Last Modify:2022-05-21 09:47:42 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:hex_string
Proto:static __attribute__((__noinline__)) char *hex_string(char *buf, char *end, u8 *addr, struct printf_spec spec, const char *fmt)
Type:char
Parameter:
| Type | Parameter | Name |
|---|---|---|
| char * | buf | |
| char * | end | |
| u8 * | addr | |
| struct printf_spec | spec | |
| const char * | fmt |
| 1107 | len = 1 |
| 1110 | If width of output field == 0 Then Return buf |
| 1118 | Case fmt[1] == 'C' |
| 1119 | separator = ':' |
| 1120 | Break |
| 1121 | Case fmt[1] == 'D' |
| 1122 | separator = '-' |
| 1123 | Break |
| 1124 | Case fmt[1] == 'N' |
| 1125 | separator = 0 |
| 1126 | Break |
| 1127 | Default |
| 1128 | separator = ' ' |
| 1129 | Break |
| 1132 | If width of output field > 0 Then 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) |
| 1150 | Return buf |
| Name | Describe |
|---|---|
| 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 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |