BUG() seems to include whole pathname in kernel data

Cesar Eduardo Barros (cesarb@web4u.com.br)
Tue, 25 Apr 2000 22:09:19 -0300


It looks like every time BUG() is called (even if it's in an unused inline
function) the whole pathname for the .h file is included in the kernel data,
which is a waste of space. Wouldn't it be better to cut everything before the
kernel source top directory (so that
/home/cesarb/src/linux-2.3.99-pre6-6/include/asm/spinlock.h would become
include/asm/spinlock.h)?

(this is the behavior of the i386 BUG(). Don't know about other archs)

-- 
Cesar Eduardo Barros
cesarb@web4u.com.br
cesarb@dcc.ufrj.br

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/