|
void | log_error (const char *message,...) |
| This function logs errors. Errors usually indicate a serious fault in the program, and that it is about to terminate abnormally (RTE).
|
|
void | log_warning (const char *message,...) |
| This function logs warnings.
|
|
void | log_info (const char *message,...) |
| This function logs informational messages. This is the lowest level of message normally printed.
|
|
void | log_debug (const char *message,...) |
| This function logs debugging messages. This level of message is normally not printed except when the binary is built in debug mode.
|
|
static uint32_t | float_to_int (float f) |
| Type-pun a float as a 32-bit unsigned integer.
|
|
static uint32_t | double_to_lower (double d) |
| Type-pun the lower 32 bits of a double as a 32-bit unsigned integer.
|
|
static uint32_t | double_to_upper (double d) |
| Type-pun the higher 32 bits of a double as a 32-bit unsigned integer.
|
|
SpiNNaker debug header file.
- Author
- Dave Lester (david.nosp@m..r.l.nosp@m.ester.nosp@m.@man.nosp@m.chest.nosp@m.er.a.nosp@m.c.uk)
- Copyright
- Copyright (c) Dave Lester and The University of Manchester, 2013. All rights reserved. SpiNNaker Project Advanced Processor Technologies Group School of Computer Science The University of Manchester Manchester M13 9PL, UK
- Date
- 12 December, 2013
ORIGINAL DETAILS
Created on : 12 December 2013
Version : $Revision$
Last modified on : $Date$
Last modified by : $Author$
$Id$
DESCRIPTION
A header file that can be used to incorporate and control debug information. It is switched ON by default; to switch OFF, the code is compiled with
-DPRODUCTION_CODE
or
-DNDEBUG
By default it is used for SpiNNaker ARM code; it can also be used in host-side C, by compiling with -DDEBUG_ON_HOST
EXAMPLES
To use, you must ‘hash-include’ debug.h:
Logging errors, warnings and info:
log_error(17, "error"); // not the most useful message..
log_warning(0, "variable x = %8x", 0xFF); // variable printing
log_info("function f entered"); // trace
Definition in file debug.h.