forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'upstream-4.6-rc1' of git://git.infradead.org/linux-ubifs
Pull UBI/UBIFS updates from Richard Weinberger: "This contains cleanups and a maintainer update for UBI and UBIFS" * tag 'upstream-4.6-rc1' of git://git.infradead.org/linux-ubifs: ubifs: Remove unused header MAINTAINERS: Update UBIFS entry mtd: ubi: Add logging functions ubi_msg, ubi_warn and ubi_err ubifs: Add logging functions for ubifs_msg, ubifs_err and ubifs_warn
- Loading branch information
Showing
7 changed files
with
136 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11326,12 +11326,13 @@ S: Maintained | |
F: drivers/scsi/u14-34f.c | ||
|
||
UBI FILE SYSTEM (UBIFS) | ||
M: Richard Weinberger <[email protected]> | ||
M: Artem Bityutskiy <[email protected]> | ||
M: Adrian Hunter <[email protected]> | ||
L: [email protected] | ||
T: git git://git.infradead.org/ubifs-2.6.git | ||
W: http://www.linux-mtd.infradead.org/doc/ubifs.html | ||
S: Maintained | ||
S: Supported | ||
F: Documentation/filesystems/ubifs.txt | ||
F: fs/ubifs/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#include <linux/kernel.h> | ||
#include "ubifs.h" | ||
|
||
/* Normal UBIFS messages */ | ||
void ubifs_msg(const struct ubifs_info *c, const char *fmt, ...) | ||
{ | ||
struct va_format vaf; | ||
va_list args; | ||
|
||
va_start(args, fmt); | ||
|
||
vaf.fmt = fmt; | ||
vaf.va = &args; | ||
|
||
pr_notice("UBIFS (ubi%d:%d): %pV\n", | ||
c->vi.ubi_num, c->vi.vol_id, &vaf); | ||
|
||
va_end(args); | ||
} \ | ||
|
||
/* UBIFS error messages */ | ||
void ubifs_err(const struct ubifs_info *c, const char *fmt, ...) | ||
{ | ||
struct va_format vaf; | ||
va_list args; | ||
|
||
va_start(args, fmt); | ||
|
||
vaf.fmt = fmt; | ||
vaf.va = &args; | ||
|
||
pr_err("UBIFS error (ubi%d:%d pid %d): %ps: %pV\n", | ||
c->vi.ubi_num, c->vi.vol_id, current->pid, | ||
__builtin_return_address(0), | ||
&vaf); | ||
|
||
va_end(args); | ||
} \ | ||
|
||
/* UBIFS warning messages */ | ||
void ubifs_warn(const struct ubifs_info *c, const char *fmt, ...) | ||
{ | ||
struct va_format vaf; | ||
va_list args; | ||
|
||
va_start(args, fmt); | ||
|
||
vaf.fmt = fmt; | ||
vaf.va = &args; | ||
|
||
pr_warn("UBIFS warning (ubi%d:%d pid %d): %ps: %pV\n", | ||
c->vi.ubi_num, c->vi.vol_id, current->pid, | ||
__builtin_return_address(0), | ||
&vaf); | ||
|
||
va_end(args); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters