| // SPDX-License-Identifier: GPL-2.0 |
| #include <linux/kernel.h> |
| int vscnprintf(char *buf, size_t size, const char *fmt, va_list args) |
| int i = vsnprintf(buf, size, fmt, args); |
| return (i >= ssize) ? (ssize - 1) : i; |
| int scnprintf(char * buf, size_t size, const char * fmt, ...) |
| i = vsnprintf(buf, size, fmt, args); |
| return (i >= ssize) ? (ssize - 1) : i; |
| int scnprintf_pad(char * buf, size_t size, const char * fmt, ...) |
| i = vscnprintf(buf, size, fmt, args); |
| for (; i < (int) size; i++) |
| return (i >= ssize) ? (ssize - 1) : i; |