diff options
Diffstat (limited to 'fs/ubifs/ubifs.h')
-rw-r--r-- | fs/ubifs/ubifs.h | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h index 2911d2d23456..de759022f3d6 100644 --- a/fs/ubifs/ubifs.h +++ b/fs/ubifs/ubifs.h | |||
@@ -43,15 +43,19 @@ | |||
43 | #define UBIFS_VERSION 1 | 43 | #define UBIFS_VERSION 1 |
44 | 44 | ||
45 | /* Normal UBIFS messages */ | 45 | /* Normal UBIFS messages */ |
46 | #define ubifs_msg(fmt, ...) pr_notice("UBIFS: " fmt "\n", ##__VA_ARGS__) | 46 | #define ubifs_msg(c, fmt, ...) \ |
47 | pr_notice("UBIFS (ubi%d:%d): " fmt "\n", \ | ||
48 | (c)->vi.ubi_num, (c)->vi.vol_id, ##__VA_ARGS__) | ||
47 | /* UBIFS error messages */ | 49 | /* UBIFS error messages */ |
48 | #define ubifs_err(fmt, ...) \ | 50 | #define ubifs_err(c, fmt, ...) \ |
49 | pr_err("UBIFS error (pid %d): %s: " fmt "\n", current->pid, \ | 51 | pr_err("UBIFS error (ubi%d:%d pid %d): %s: " fmt "\n", \ |
52 | (c)->vi.ubi_num, (c)->vi.vol_id, current->pid, \ | ||
50 | __func__, ##__VA_ARGS__) | 53 | __func__, ##__VA_ARGS__) |
51 | /* UBIFS warning messages */ | 54 | /* UBIFS warning messages */ |
52 | #define ubifs_warn(fmt, ...) \ | 55 | #define ubifs_warn(c, fmt, ...) \ |
53 | pr_warn("UBIFS warning (pid %d): %s: " fmt "\n", \ | 56 | pr_warn("UBIFS warning (ubi%d:%d pid %d): %s: " fmt "\n", \ |
54 | current->pid, __func__, ##__VA_ARGS__) | 57 | (c)->vi.ubi_num, (c)->vi.vol_id, current->pid, \ |
58 | __func__, ##__VA_ARGS__) | ||
55 | /* | 59 | /* |
56 | * A variant of 'ubifs_err()' which takes the UBIFS file-sytem description | 60 | * A variant of 'ubifs_err()' which takes the UBIFS file-sytem description |
57 | * object as an argument. | 61 | * object as an argument. |
@@ -59,7 +63,7 @@ | |||
59 | #define ubifs_errc(c, fmt, ...) \ | 63 | #define ubifs_errc(c, fmt, ...) \ |
60 | do { \ | 64 | do { \ |
61 | if (!(c)->probing) \ | 65 | if (!(c)->probing) \ |
62 | ubifs_err(fmt, ##__VA_ARGS__); \ | 66 | ubifs_err(c, fmt, ##__VA_ARGS__); \ |
63 | } while (0) | 67 | } while (0) |
64 | 68 | ||
65 | /* UBIFS file system VFS magic number */ | 69 | /* UBIFS file system VFS magic number */ |
@@ -1787,10 +1791,10 @@ long ubifs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg); | |||
1787 | /* compressor.c */ | 1791 | /* compressor.c */ |
1788 | int __init ubifs_compressors_init(void); | 1792 | int __init ubifs_compressors_init(void); |
1789 | void ubifs_compressors_exit(void); | 1793 | void ubifs_compressors_exit(void); |
1790 | void ubifs_compress(const void *in_buf, int in_len, void *out_buf, int *out_len, | 1794 | void ubifs_compress(const struct ubifs_info *c, const void *in_buf, int in_len, |
1791 | int *compr_type); | 1795 | void *out_buf, int *out_len, int *compr_type); |
1792 | int ubifs_decompress(const void *buf, int len, void *out, int *out_len, | 1796 | int ubifs_decompress(const struct ubifs_info *c, const void *buf, int len, |
1793 | int compr_type); | 1797 | void *out, int *out_len, int compr_type); |
1794 | 1798 | ||
1795 | #include "debug.h" | 1799 | #include "debug.h" |
1796 | #include "misc.h" | 1800 | #include "misc.h" |