__FUNCTION__ and debug.

From: Robert Collins <robertc@dont-contact.us>
Date: 26 Oct 2002 12:05:08 +1000

I'd like to introduce a new debug api:

trace(section, level)(const char *format, ...);

This will over time replace debug() as the primary debugging output
tool.

trace will have the following semantics:
It will prepend the __FUNCTION__ macro to the format string:
ie "Can't lock foo" in somefunc() will output as
"somefunc: Can't lock foo".

It won't enforce, but also won't support, embedded \n characters.

Any objections or minor tweaks?

Rob

Received on Fri Oct 25 2002 - 20:05:12 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:17:01 MST