Re: [PATCH 6/7] Add pr_debug_pid to kernel.h

2007-06-09 Thread Jack Stone
Alexey Dobriyan wrote: > NO! We don't add macros for every debug format people use into core > headers. I think you should stop after pr_err(). That was what I though would be the answer which is why i did this change in the last set of patches. Jack - To unsubscribe from this list: send the line

Re: [PATCH 6/7] Add pr_debug_pid to kernel.h

2007-06-09 Thread Alexey Dobriyan
On Sat, Jun 09, 2007 at 09:18:36AM +0100, Jack Stone wrote: > This patch adds a new function to kernel.h. This function prints out the > pid of the current process and the name of the function where it was > called from followed by the debug message and a newline. NO! We don't add macros for every

[PATCH 6/7] Add pr_debug_pid to kernel.h

2007-06-09 Thread Jack Stone
This patch adds a new function to kernel.h. This function prints out the pid of the current process and the name of the function where it was called from followed by the debug message and a newline. This function mimics the output of autofs4. Signed-off-by: Jack Stone <[EMAIL PROTECTED]> --- Inde

[PATCH 6/7] Add pr_debug_pid to kernel.h

2007-06-08 Thread Jack Stone
Signed-off-by: Jack Stone <[EMAIL PROTECTED]> --- +static inline int __attribute__ ((format (printf, 1, 2))) pr_debug_pid(const char * fmt, ...) +{ + return 0; +} + static inline int __attribute__ ((format (printf, 1, 2))) pr_err(const char * fmt, ...) { return 0; -- - To unsubsc