Messages in this thread | | | Date | Fri, 10 May 2002 21:32:44 -0500 (CDT) | From | Kai Germaschewski <> | Subject | Re: [PATCH] BUG() disassembly tweak |
| |
On Sat, 11 May 2002, Hugh Dickins wrote:
> Is there some escaped syntax whereby we can (usefully) put > KBUILD_BASENAME into the BUG() macro in place of __FILE__?
It doesn't help. When compiling, KBUILD_BASENAME is the name of the main source file, i.e. the one given on the command line (basically the same thing as __BASEFILE__ or whatever that gcc preprocessor variable is called).
You don't want to get "BUG at foo:23", when the BUG instruction is actually at filesystem.h:23. Only the compiler knows which source file it is currently dealing with.
--Kai
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |