lkml.org 
[lkml]   [2002]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] BUG() disassembly tweak
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:22    [W:0.056 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site