extract and use FILE_LINE macro
authorAlexey Dobriyan <adobriyan@gmail.com>
Sat, 16 Sep 2023 18:21:31 +0000 (21:21 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 18 Oct 2023 21:43:21 +0000 (14:43 -0700)
commit5097a69d676f7e562240dbe81c21b1c62aaf5950
tree1d9de965dc86e98916d95b479d962390de1b5f9c
parentc37e56cac3d62c69f093904afbc58fc428484d14
extract and use FILE_LINE macro

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>
include/linux/fortify-string.h
include/linux/stringify.h
include/linux/timer.h
sound/pci/asihpi/hpidebug.h