Re: [PATCH] BUG() disassembly tweak

From: Keith Owens (kaos@ocs.com.au)
Date: Fri May 10 2002 - 22:03:00 EST


On Sat, 11 May 2002 02:58:32 +0100 (BST),
Hugh Dickins <hugh@veritas.com> wrote:
>Is there some escaped syntax whereby we can (usefully) put
>KBUILD_BASENAME into the BUG() macro in place of __FILE__?

AFAICT without testing it, you should be able to directly replace
__FILE__ with KBUILD_BASENAME. Both are just pre-processor variables.

On my bells and whistles list (things to add after kbuild 2.5 is in the
kernel) is KBUILD_UNIQUE_NAME. That variable will contain enough of
the pathname to uniquely identify the source. For globally unique
names it is the same as KBUILD_BASENAME with a .[cS] suffix. For
repeated filenames like inode.c it is fs/inode.c for the top level,
ext2/inode.c for an individual filesystem.

-
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/



This archive was generated by hypermail 2b29 : Tue May 14 2002 - 12:00:15 EST