Lines Matching refs:fmt
54 static int __do_vsprintf(char *buf, const char *fmt, int buf_size, va_list args) in __do_vsprintf() argument
75 for (; *fmt; ++fmt) in __do_vsprintf()
78 if (*fmt != '%') in __do_vsprintf()
80 *str = *fmt; in __do_vsprintf()
93 ++fmt; in __do_vsprintf()
96 switch (*fmt) in __do_vsprintf()
107 ++fmt; in __do_vsprintf()
112 ++fmt; in __do_vsprintf()
116 ++fmt; in __do_vsprintf()
121 ++fmt; in __do_vsprintf()
126 ++fmt; in __do_vsprintf()
138 if (*fmt == '*') in __do_vsprintf()
141 ++fmt; in __do_vsprintf()
143 else if (is_digit(*fmt)) in __do_vsprintf()
145 field_width = skip_and_atoi(&fmt); in __do_vsprintf()
155 if (*fmt == '.') in __do_vsprintf()
157 ++fmt; in __do_vsprintf()
158 if (*fmt == '*') in __do_vsprintf()
161 ++fmt; in __do_vsprintf()
163 else if (is_digit(*fmt)) in __do_vsprintf()
165 precision = skip_and_atoi(&fmt); in __do_vsprintf()
170 if (*fmt == 'h' || *fmt == 'l' || *fmt == 'L' || *fmt == 'Z') in __do_vsprintf()
172 qualifier = *fmt; in __do_vsprintf()
173 ++fmt; in __do_vsprintf()
176 if (qualifier == 'l' && *fmt == 'l', *(fmt + 1) == 'd') in __do_vsprintf()
177 ++fmt; in __do_vsprintf()
181 switch (*fmt) in __do_vsprintf()
328 if (*fmt) in __do_vsprintf()
329 *str++ = *fmt; in __do_vsprintf()
331 --fmt; in __do_vsprintf()
364 int vsprintf(char *buf, const char *fmt, va_list args) in vsprintf() argument
366 return __do_vsprintf(buf, fmt, -1, args); in vsprintf()
378 int vsnprintf(char *buf, const char *fmt, int buf_size, va_list args) in vsnprintf() argument
380 return __do_vsprintf(buf, fmt, buf_size, args); in vsnprintf()
594 int printk_color(unsigned int FRcolor, unsigned int BKcolor, const char *fmt, ...) in printk_color() argument
599 va_start(args, fmt); in printk_color()
601 int len = vsprintf(buf, fmt, args); in printk_color()
617 int sprintk(char *buf, const char *fmt, ...) in sprintk() argument
622 va_start(args, fmt); in sprintk()
623 count = vsprintf(buf, fmt, args); in sprintk()