.. | .. |
---|
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 |
---|
.. | .. |
---|
31 | 31 | |
---|
32 | 32 | static char tmp_buffer[KUTF_MAX_DSPRINTF_LEN]; |
---|
33 | 33 | |
---|
34 | | -DEFINE_MUTEX(buffer_lock); |
---|
| 34 | +static DEFINE_MUTEX(buffer_lock); |
---|
35 | 35 | |
---|
36 | 36 | const char *kutf_dsprintf(struct kutf_mempool *pool, |
---|
37 | 37 | const char *fmt, ...) |
---|
.. | .. |
---|
47 | 47 | va_end(args); |
---|
48 | 48 | |
---|
49 | 49 | if (len < 0) { |
---|
50 | | - pr_err("kutf_dsprintf: Bad format dsprintf format %s\n", fmt); |
---|
| 50 | + pr_err("%s: Bad format dsprintf format %s\n", __func__, fmt); |
---|
51 | 51 | goto fail_format; |
---|
52 | 52 | } |
---|
53 | 53 | |
---|
54 | 54 | if (len >= sizeof(tmp_buffer)) { |
---|
55 | | - pr_warn("kutf_dsprintf: Truncated dsprintf message %s\n", fmt); |
---|
| 55 | + pr_warn("%s: Truncated dsprintf message %s\n", __func__, fmt); |
---|
56 | 56 | size = sizeof(tmp_buffer); |
---|
57 | 57 | } else { |
---|
58 | 58 | size = len + 1; |
---|