summaryrefslogtreecommitdiff
path: root/log.c
AgeCommit message (Collapse)Author
2017-01-07license: remove FSF postal address from boiler plate license textGerhard Sittig
Remove the FSF postal address as it might change (it did in the past). Reference the gnu.org website instead which is more stable.
2015-09-13log: Use GLib printf for consistencyDaniel Elstner
Just as in libsigrok, use g_vfprintf() in the log callback to make sure we are linking to a standard-conforming printf implementation.
2015-09-13Build: Include <config.h> first in all source filesDaniel Elstner
Since Autoconf places some important feature flags only into the configuration header, it is necessary to include it globally to guarantee a consistent build.
2015-09-13log: Enable varargs format warningsDaniel Elstner
Decorate srd_log() with the GCC format printf attribute so that the compiler can check the format string and arguments for consistency. Also remove the srd_err(), sr_warn(), etc. functions and replace them with macro wrappers around srd_log().
2015-09-13log: Remove srd_log_logdomain_{get,set} from the APIDaniel Elstner
The confusingly named srd_log_logdomain_set() simply set a global string prefixed to the log message by the default log callback. This is pretty much useless, misleadingly named, and not used by either sigrok-cli or PulseView.
2014-07-08Remove dependency on Python.h from public API headerMarcus Comstedt
This prevents Python.h from being included into client code, where it can mess things up by e.g. redefining _POSIX_C_SOURCE.
2014-05-04log.c: Avoid using the same name for a variable and enum.Uwe Hermann
2014-05-04Update a few Doxygen @since tags.Uwe Hermann
2014-05-03Don't define names ending with _t (POSIX reserved).Uwe Hermann
Avoid defining any names ending in _t, those are generally reserved for POSIX usage. For details see: http://pubs.opengroup.org/onlinepubs/007904975/functions/xsh_chap02_02.html http://www.gnu.org/software/libc/manual/html_node/Reserved-Names.html
2013-10-14Code cleanupBert Vermeulen
2013-05-03Main header is <libsigrokdecode/libsigrokdecode.h> now.Uwe Hermann
This matches the convention used in libsigrok. Potential other headers might end up in libsigrokdecode/, but only libsigrokdecode.h is meant to be #included by frontends directly.
2013-05-03Doxygen: Add @since markers to API functions.Uwe Hermann
Also, document the functions in version.c.
2013-04-23GPL headers: Use correct project name.Uwe Hermann
2013-02-09Doxygen: Initial groups and topic short descriptions.Uwe Hermann
2013-02-09Doxygen: Add @file items for the relevant files.Uwe Hermann
These short descriptions are shown in the "Files" section of the Doxygen output.
2013-02-09Doxygen: Mark private functions/variables properly.Uwe Hermann
2012-03-04sr/srd: s/handler/callback/.Uwe Hermann
We should consistently use the same name for the same thing.
2012-03-02sr: Name all callback data 'cb_data'.Uwe Hermann
2012-02-12srd: last public/private fix, and docs for all publis functions.Bert Vermeulen
2012-02-11Rename 'void *' callback parameters to 'user_data'.Uwe Hermann
This is better, both for consistency reasons, and also because 'data' is a bit too generic and might be confusing, especially since we have other 'data' fields in the code in various places.
2012-02-10srd: Add/use SRD_API/SRD_PRIV macros.Uwe Hermann
This is not yet finished, more things should be made private.
2012-02-10srd: More consistent log related function names.Uwe Hermann
Also, fix typos, constify some parameters, add more Doxygen comments.
2012-01-27srd: use format string where one is expectedBert Vermeulen
2012-01-26srd: Remove manual log domain ("srd: ") prefixes.Uwe Hermann
2012-01-26srd: log: Support for setting a log domain (prefix).Uwe Hermann
2012-01-25srd: Support for registering a custom log handler.Uwe Hermann
2012-01-22srd: make all debugging and error reporting uniformBert Vermeulen
2012-01-05new srd_logic type implementation for PDs to iterate over.Bert Vermeulen
2011-12-22srd: SRD_ERR_ARGS -> SRD_ERR_ARG.Uwe Hermann
This is done to be consistent with libsigrok's SR_ERR_ARG (nicer that way).
2011-12-22srd: Add logging framework.Uwe Hermann
This includes the (private) functions srd_err() and friends, the (public) SRD_LOG_ERR macros and friends, and the (public) API functions srd_set_loglevel() and srd_get_loglevel().