]> www.infradead.org Git - mtd-utils.git/commit
ubifs-utils: Add implementations for linux kernel printing functions
authorZhihao Cheng <chengzhihao1@huawei.com>
Mon, 11 Nov 2024 08:36:51 +0000 (16:36 +0800)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Mon, 11 Nov 2024 09:32:45 +0000 (10:32 +0100)
commit24f4d8abd9fc7f8e90c0f1d2a652cb8ea790d54c
tree36b3a258395531eed56c81431ba8ad45528291e9
parent1bf5f879f01a1a1f6d99c5a2a13d710ca7908d64
ubifs-utils: Add implementations for linux kernel printing functions

Add implementations for linux kernel printing functions, because these
functions(eg. pr_debug, pr_err, etc.) are widely used in UBIFS linux
kernel libs. No need to define multiple levels in dbg_msg for debuging,
just replace dbg_msg with pr_debug. Now, there are five levels of
printing messages:
 0 - none
 1 - error message
 2 - warning message [default]
 3 - notice message
 4 - debug message

This is a preparation for replacing implementation of UBIFS utils with
linux kernel libs.

Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
configure.ac
ubifs-utils/Makemodule.am
ubifs-utils/common/defs.h
ubifs-utils/common/devtable.c
ubifs-utils/common/lpt.c
ubifs-utils/mkfs.ubifs/mkfs.ubifs.c