Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:rtc_str

Proto:static __attribute__((__noinline__)) char *rtc_str(char *buf, char *end, const struct rtc_time *tm, struct printf_spec spec, const char *fmt)

Type:char

Parameter:

TypeParameterName
char *buf
char *end
const struct rtc_time *tm
struct printf_specspec
const char *fmt
1788  bool have_t = true, have_d = true
1789  bool raw = false
1790  count = 2
1792  If check_pointer( & buf, end, tm, spec) Then Return buf
1796  Case fmt[count] == 'd'
1797  have_t = false
1798  count++
1799  Break
1800  Case fmt[count] == 't'
1801  have_d = false
1802  count++
1803  Break
1806  raw = fmt[count] == 'r'
1808  If have_d Then buf = date_str(buf, end, tm, raw)
1810  If have_d && have_t Then
1812  If buf < end Then buf = 'T'
1814  buf++
1816  If have_t Then buf = time_str(buf, end, tm, raw)
1819  Return buf
Caller
NameDescribe
time_and_date