Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\vsprintf.c Create Date:2022-07-28 06:12:24
Last Modify:2022-05-21 09:47:42 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:set_precision

Proto:static void set_precision(struct printf_spec *spec, int prec)

Type:void

Parameter:

TypeParameterName
struct printf_spec *spec
intprec
2470  # of digits/chars = prec
2471  If WARN_ONCE( # of digits/chars != prec, "precision %d too large", prec) Then
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)
Caller
NameDescribe
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