Added a mechanism to log messages with different priority levels, and to filter which messages are output by setting a threshold level. The function to set the current log level/verbosity is exposed through libbladeRF.h, while the logging function/macros themselves are private to this project, and are present in log.c/log.h. Callers should use the convenience macros bladerf_log_[level]() to issue their log messages. These macros piece together a format string that contains the message priority and, for warning and higher priorities, the function and line number on which the message was logged. Also, warning level and higher level messages are output to stderr, rather than stdout. |
||
|---|---|---|
| .. | ||
| windows | ||
| conversions.h | ||
| host_config.h.in | ||
| log.h | ||
| minmax.h | ||