Re: define dbg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Also sprach rmasoodu@in.ibm.com:
} 
} 
} hi
} how does this work ???
}
} #undef dbg

Undefine any previous definitions of the preprocessor macro "dbg"

} #define dbg(format, arg,...) do {if(debug)		\
}   printk(KERN_DEBUG __FILE__": "format "\n", ##arg); )while (0)
} 
Define the preprocessor macro "dbg" to print out some debugging
information (the ... in the macro definition is a gcc enhancement to C
which allows for variable parameters to preprocessor macros).

} #endif
} 
End a previous #if... statement...

-- 
|| Bill Wendling			wendling@ganymede.isdn.uiuc.edu
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux