Lines Matching +full:max +full:- +full:x
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
73 * current hook - if any - for later re-installation.
92 k_str_out(ctx->buf, ctx->buf_count); in buf_flush()
93 ctx->buf_count = 0U; in buf_flush()
100 ctx->buf[ctx->buf_count++] = c; in buf_char_out()
101 if (ctx->buf_count == CONFIG_PRINTK_BUFFER_SIZE) { in buf_char_out()
187 * printf-like formatting is available.
190 * - %x/%X: outputs a number in hexadecimal format
191 * - %s: outputs a null-terminated string
192 * - %p: pointer, same as %x with a 0x prefix
193 * - %u: outputs a number in unsigned decimal format
194 * - %d/%i: outputs a number in signed decimal format
199 * otherwise 'ERR' is printed. Full 64-bit values may be printed with %llx.
221 int max; member
227 if (ctx->str == NULL || ctx->count >= ctx->max) { in str_out()
228 ctx->count++; in str_out()
232 if (ctx->count == ctx->max - 1) { in str_out()
233 ctx->str[ctx->count++] = '\0'; in str_out()
235 ctx->str[ctx->count++] = c; in str_out()
259 if (ctx.count < ctx.max) { in vsnprintk()