Rev 5270 | Rev 6102 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5270 | Rev 6082 | ||
---|---|---|---|
Line 63... | Line 63... | ||
63 | * Add this to a message whenever you want to warn user space about the use |
63 | * Add this to a message whenever you want to warn user space about the use |
64 | * of a deprecated aspect of an API so they can stop using it |
64 | * of a deprecated aspect of an API so they can stop using it |
65 | */ |
65 | */ |
66 | #define DEPRECATED "[Deprecated]: " |
66 | #define DEPRECATED "[Deprecated]: " |
Line -... | Line 67... | ||
- | 67 | ||
- | 68 | /* |
|
- | 69 | * Dummy printk for disabled debugging statements to use whilst maintaining |
|
- | 70 | * gcc's format and side-effect checking. |
|
67 | 71 | */ |
|
68 | static inline __printf(1, 2) |
72 | static inline __printf(1, 2) |
69 | int no_printk(const char *fmt, ...) |
73 | int no_printk(const char *fmt, ...) |
70 | { |
74 | { |
71 | return 0; |
75 | return 0; |
Line 101... | Line 105... | ||
101 | #define pr_warn pr_warning |
105 | #define pr_warn pr_warning |
102 | #define pr_notice(fmt, ...) \ |
106 | #define pr_notice(fmt, ...) \ |
103 | printk(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__) |
107 | printk(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__) |
104 | #define pr_info(fmt, ...) \ |
108 | #define pr_info(fmt, ...) \ |
105 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) |
109 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) |
- | 110 | /* |
|
- | 111 | * Like KERN_CONT, pr_cont() should only be used when continuing |
|
- | 112 | * a line with no newline ('\n') enclosed. Otherwise it defaults |
|
- | 113 | * back to KERN_DEFAULT. |
|
- | 114 | */ |
|
106 | #define pr_cont(fmt, ...) \ |
115 | #define pr_cont(fmt, ...) \ |
107 | printk(KERN_CONT fmt, ##__VA_ARGS__) |
116 | printk(KERN_CONT fmt, ##__VA_ARGS__) |
Line 108... | Line 117... | ||
108 | 117 | ||
109 | /* pr_devel() should produce zero code unless DEBUG is defined */ |
118 | /* pr_devel() should produce zero code unless DEBUG is defined */ |
Line 248... | Line 257... | ||
248 | enum { |
257 | enum { |
249 | DUMP_PREFIX_NONE, |
258 | DUMP_PREFIX_NONE, |
250 | DUMP_PREFIX_ADDRESS, |
259 | DUMP_PREFIX_ADDRESS, |
251 | DUMP_PREFIX_OFFSET |
260 | DUMP_PREFIX_OFFSET |
252 | }; |
261 | }; |
253 | extern void hex_dump_to_buffer(const void *buf, size_t len, |
262 | extern int hex_dump_to_buffer(const void *buf, size_t len, int rowsize, |
254 | int rowsize, int groupsize, |
263 | int groupsize, char *linebuf, size_t linebuflen, |
255 | char *linebuf, size_t linebuflen, bool ascii); |
264 | bool ascii); |
Line 256... | Line 265... | ||
256 | 265 | ||
257 | extern void print_hex_dump(const char *level, const char *prefix_str, |
266 | extern void print_hex_dump(const char *level, const char *prefix_str, |
258 | int prefix_type, int rowsize, int groupsize, |
267 | int prefix_type, int rowsize, int groupsize, |
259 | const void *buf, size_t len, bool ascii); |
268 | const void *buf, size_t len, bool ascii); |