函数逻辑报告

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_precision

函数原型:static void set_precision(struct printf_spec *spec, int prec)

返回类型:void

参数:

类型参数名称
struct printf_spec *spec
intprec
2470  # of digits/chars 等于prec
2471  如果WARN_ONCE( # of digits/chars != prec, "precision %d too large", prec)则
2472  # of digits/chars 等于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(prec, 0, PRECISION_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