Lines Matching +full:count +full:- +full:width
2 * Copyright (c) 2010, 2013-2014 Wind River Systems, Inc.
4 * SPDX-License-Identifier: Apache-2.0
9 * @brief Low-level debug output
11 * Low-level debugging output. Platform installs a character output routine at
17 #include <zephyr/sys/printk-hooks.h>
78 k_str_out(ctx->buf, ctx->buf_count); in buf_flush()
79 ctx->buf_count = 0U; in buf_flush()
86 ctx->buf[ctx->buf_count] = c; in buf_char_out()
87 ++ctx->buf_count; in buf_char_out()
88 if (ctx->buf_count == CONFIG_PRINTK_BUFFER_SIZE) { in buf_char_out()
175 * printf-like formatting is available.
178 * - %x/%X: outputs a number in hexadecimal format
179 * - %s: outputs a null-terminated string
180 * - %p: pointer, same as %x with a 0x prefix
181 * - %u: outputs a number in unsigned decimal format
182 * - %d/%i: outputs a number in signed decimal format
184 * Field width (with or without leading zeroes) is supported.
187 * otherwise 'ERR' is printed. Full 64-bit values may be printed with %llx.
210 int count; member
215 if ((ctx->str == NULL) || (ctx->count >= ctx->max)) { in str_out()
216 ++ctx->count; in str_out()
220 if (ctx->count == (ctx->max - 1)) { in str_out()
221 ctx->str[ctx->count] = '\0'; in str_out()
223 ctx->str[ctx->count] = c; in str_out()
225 ++ctx->count; in str_out()
248 if (ctx.count < ctx.max) { in vsnprintk()
249 str[ctx.count] = '\0'; in vsnprintk()
252 return ctx.count; in vsnprintk()