[ovs-dev] [log backtrace v2] backtrace: add log_backtrace_*()
Ben Pfaff
blp at nicira.com
Mon Mar 17 20:49:47 UTC 2014
On Fri, Mar 14, 2014 at 02:24:33PM -0700, Andy Zhou wrote:
> log_backtrace() and log_backtrace_msg() logs the back trace into
> the log file. It may be most useful when debugging unit tests.
> "backtrace.h" documents the usage. It is not being called directly
> in the code, but rather as a handy tool available when needed.
In backtrace.h, the comment talks about LOG_BACKTRACE in all caps, but
the actual macro is log_backtrace() in lowercase. Either name is
fine, as long as we're consistent.
> #include "backtrace.h"
> +#include "inttypes.h"
<inttypes.h> is the standard header.
Acked-by: Ben Pfaff <blp at nicira.com>
More information about the dev
mailing list