Click to See Complete Forum and Search --> : Adding Debug Output to the Linux Kernel


gommo
03-31-2003, 10:00 PM
I want to enable some of the Debug output in serial.c of the linux kernel.
Such as SERIAL_DEBUG_INTR

How can I do this from the makefile.
Is there a place where I can place what debugs I want to define without actually having to place
#define SERIAL_DEBUG_INTR in the code

error27
04-01-2003, 03:08 AM
Yes.

You basically want the compile comand to have something like this.

gcc -DSERIAL_DEBUG_INTR blah.c

I'll leave the Makefile editing to you. :)

gommo
04-01-2003, 03:10 AM
Yeah I knew that, I just wasnt sure where to place it in the Makefile's so it would effect all files. Howver, I found it under CFLAGS or something like that