Lines Matching refs:fmt
28 #define ALPHA(fmt) (((fmt) & 0x60) - '0' - 10 + 1) argument
76 int z_cbvprintf_impl(cbprintf_cb __out, void *ctx, const char *fmt, in z_cbvprintf_impl() argument
90 fmt--; in z_cbvprintf_impl()
93 while (*++fmt != '%') { in z_cbvprintf_impl()
94 if (*fmt == '\0') { in z_cbvprintf_impl()
97 OUTC(*fmt); in z_cbvprintf_impl()
107 for (fmt++ ; ; fmt++) { in z_cbvprintf_impl()
108 switch (*fmt) { in z_cbvprintf_impl()
142 precision = 10 * precision + *fmt - '0'; in z_cbvprintf_impl()
147 min_width = 10 * min_width + *fmt - '0'; in z_cbvprintf_impl()
168 special = *fmt; in z_cbvprintf_impl()
174 if (*fmt == 'h' && length_mod == 'h') { in z_cbvprintf_impl()
176 } else if (*fmt == 'l' && length_mod == 'l') { in z_cbvprintf_impl()
179 length_mod = *fmt; in z_cbvprintf_impl()
182 OUTC(*fmt); in z_cbvprintf_impl()
195 if (*fmt == 'u') { in z_cbvprintf_impl()
201 if (*fmt == 'u') { in z_cbvprintf_impl()
207 if (*fmt == 'u') { in z_cbvprintf_impl()
229 } else if (*fmt == 'u') { in z_cbvprintf_impl()
235 if (*fmt != 'u' && (int_value_type)d < 0) { in z_cbvprintf_impl()
260 if (*fmt == 'p') { in z_cbvprintf_impl()
286 prefix = (*fmt & 0x20) ? "0x" : "0X"; in z_cbvprintf_impl()
289 data_len = convert_value(x, 16, ALPHA(*fmt), in z_cbvprintf_impl()
323 OUTC(*fmt); in z_cbvprintf_impl()