summaryrefslogtreecommitdiff
path: root/include/linux/stringify.h
AgeCommit message (Collapse)Author
2023-10-18extract and use FILE_LINE macroAlexey Dobriyan
Extract nifty FILE_LINE useful for printk style debugging: printk("%s\n", FILE_LINE); It should not be used en mass probably because __FILE__ string literals can be merged while FILE_LINE's won't. But for debugging it is what the doctor ordered. Don't add leading and trailing underscores, they're painful to type. Trust me, I've tried both versions. Link: https://lkml.kernel.org/r/ebf12ac4-5a61-4b12-b8b0-1253eb371332@p183 Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Cc: Kees Cook <keescook@chromium.org> Cc: Takashi Iwai <tiwai@suse.de> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2009-04-10Make __stringify support variable argument macros tooZhaolei
For example: __stringify(__entry->irq, __entry->ret) will now convert it to: "REC->irq, REC->ret" It also still supports single arguments as the old macro did. Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com> Acked-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Steven Rostedt <rostedt@goodmis.org> LKML-Reference: <49DC6751.30308@cn.fujitsu.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
2002-08-12[PATCH] UML patch fixupJeff Dike
When you reverted the stringify changes I sent last time, you missed removing a comment, which is now grossly wrong. This patch finishes the job.
2002-08-03Undo "stringify()" changes, since they don't work withLinus Torvalds
various compilers
2002-08-03[PATCH] UML preparation - linkage.hJeff Dike
This a preparatory patch which allows UML to avoid changing linux/linkage.h. It restructures linkage.h so that all of the arch-specific stuff is in asm-*/linkage.h. linux/linkage.h is now arch independent. It should be functionally unchanged. Five arches, i386, ia64, sh, m68k, and arm, have non-empty linkage.h files. The other arch linkage.h files are all empty. Also, __ALIGN_STR is no longer defined independently of __ALIGN. It is now derived by stringizing __ALIGN. Following a suggestion by Keith Owens, stringify.h was generalized to allow commas in its argument, linkage.h now includes it, and no longer defines its own stringify macros.
2002-02-08[PATCH] text.lock -> subsection changes.Dave Jones
Make spinlocks etc use subsections of their parent sections instead of an ELF section of their own - needed for newer binutils when the parent sector is removed.