函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:set_field_width

函数原型:static void set_field_width(struct printf_spec *spec, int width)

返回类型:void

参数:

类型参数名称
struct printf_spec *spec
intwidth
2461  width of output field 等于width
2462  如果WARN_ONCE( width of output field != width, "field width %d too large", width)则
2463  width of output field 等于clamp - return a value clamped to a given range with strict typechecking*@val: current value*@lo: lowest allowable value*@hi: highest allowable value* This macro does strict typechecking of @lo/@hi to make sure they are of the* same type as @val(width, - FIELD_WIDTH_MAX, FIELD_WIDTH_MAX)
调用者
名称描述
vsnprintfvsnprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@args: Arguments for the format string* This function generally