1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/kernel.h>
5 /* Normal UBIFS messages */
6 void ubifs_msg(const struct ubifs_info
*c
, const char *fmt
, ...)
16 pr_notice("UBIFS (ubi%d:%d): %pV\n",
17 c
->vi
.ubi_num
, c
->vi
.vol_id
, &vaf
);
22 /* UBIFS error messages */
23 void ubifs_err(const struct ubifs_info
*c
, const char *fmt
, ...)
33 pr_err("UBIFS error (ubi%d:%d pid %d): %ps: %pV\n",
34 c
->vi
.ubi_num
, c
->vi
.vol_id
, current
->pid
,
35 __builtin_return_address(0),
41 /* UBIFS warning messages */
42 void ubifs_warn(const struct ubifs_info
*c
, const char *fmt
, ...)
52 pr_warn("UBIFS warning (ubi%d:%d pid %d): %ps: %pV\n",
53 c
->vi
.ubi_num
, c
->vi
.vol_id
, current
->pid
,
54 __builtin_return_address(0),