| .. | .. |
|---|
| 1 | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
|---|
| 2 | 2 | /* |
|---|
| 3 | 3 | * |
|---|
| 4 | | - * (C) COPYRIGHT 2014, 2017, 2020-2021 ARM Limited. All rights reserved. |
|---|
| 4 | + * (C) COPYRIGHT 2014, 2017, 2020-2022 ARM Limited. All rights reserved. |
|---|
| 5 | 5 | * |
|---|
| 6 | 6 | * This program is free software and is provided to you under the terms of the |
|---|
| 7 | 7 | * GNU General Public License version 2 as published by the Free Software |
|---|
| .. | .. |
|---|
| 33 | 33 | #include <kutf/kutf_mem.h> |
|---|
| 34 | 34 | |
|---|
| 35 | 35 | /** |
|---|
| 36 | | - * Maximum size of the message strings within kernel UTF, messages longer then |
|---|
| 37 | | - * this will be truncated. |
|---|
| 36 | + * KUTF_MAX_DSPRINTF_LEN - Maximum size of the message strings within |
|---|
| 37 | + * kernel UTF, messages longer then this will be truncated. |
|---|
| 38 | 38 | */ |
|---|
| 39 | 39 | #define KUTF_MAX_DSPRINTF_LEN 1024 |
|---|
| 40 | 40 | |
|---|
| .. | .. |
|---|
| 54 | 54 | * Return: Returns pointer to allocated string, or NULL on error. |
|---|
| 55 | 55 | */ |
|---|
| 56 | 56 | const char *kutf_dsprintf(struct kutf_mempool *pool, |
|---|
| 57 | | - const char *fmt, ...); |
|---|
| 57 | + const char *fmt, ...) __printf(2, 3); |
|---|
| 58 | + |
|---|
| 58 | 59 | |
|---|
| 59 | 60 | #endif /* _KERNEL_UTF_UTILS_H_ */ |
|---|