diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-06-05 12:53:07 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-06-05 12:53:07 +0200 |
commit | 142f890314a2279a383a70251e1579f277c408e3 (patch) | |
tree | 5a7a428752269e3f9f639c92f938544b46924368 /include | |
parent | 8da617e5b39cea4e7aab9bea25fba9c0d2d59f5b (diff) |
Allows to enforce prefixed verbose messages
Change-Id: I41aa310f6898d5578b8de296d3b637c0d3595b1b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'include')
-rw-r--r-- | include/afb/afb-binding.h | 58 |
1 files changed, 37 insertions, 21 deletions
diff --git a/include/afb/afb-binding.h b/include/afb/afb-binding.h index 682dcbd6..3215c594 100644 --- a/include/afb/afb-binding.h +++ b/include/afb/afb-binding.h @@ -141,17 +141,17 @@ typedef struct afb_service_itf afb_service_itf; # if !defined(AFB_BINDING_PRAGMA_NO_VERBOSE_MACRO) -# define ERROR AFB_ERROR_V1 -# define WARNING AFB_WARNING_V1 -# define NOTICE AFB_NOTICE_V1 -# define INFO AFB_INFO_V1 -# define DEBUG AFB_DEBUG_V1 - -# define REQ_ERROR AFB_REQ_ERROR_V1 -# define REQ_WARNING AFB_REQ_WARNING_V1 -# define REQ_NOTICE AFB_REQ_NOTICE_V1 -# define REQ_INFO AFB_REQ_INFO_V1 -# define REQ_DEBUG AFB_REQ_DEBUG_V1 +# define AFB_ERROR AFB_ERROR_V1 +# define AFB_WARNING AFB_WARNING_V1 +# define AFB_NOTICE AFB_NOTICE_V1 +# define AFB_INFO AFB_INFO_V1 +# define AFB_DEBUG AFB_DEBUG_V1 + +# define AFB_REQ_ERROR AFB_REQ_ERROR_V1 +# define AFB_REQ_WARNING AFB_REQ_WARNING_V1 +# define AFB_REQ_NOTICE AFB_REQ_NOTICE_V1 +# define AFB_REQ_INFO AFB_REQ_INFO_V1 +# define AFB_REQ_DEBUG AFB_REQ_DEBUG_V1 # endif @@ -195,17 +195,17 @@ typedef struct afb_service_itf afb_service_itf; # if !defined(AFB_BINDING_PRAGMA_NO_VERBOSE_MACRO) -# define ERROR AFB_ERROR_V2 -# define WARNING AFB_WARNING_V2 -# define NOTICE AFB_NOTICE_V2 -# define INFO AFB_INFO_V2 -# define DEBUG AFB_DEBUG_V2 +# define AFB_ERROR AFB_ERROR_V2 +# define AFB_WARNING AFB_WARNING_V2 +# define AFB_NOTICE AFB_NOTICE_V2 +# define AFB_INFO AFB_INFO_V2 +# define AFB_DEBUG AFB_DEBUG_V2 -# define REQ_ERROR AFB_REQ_ERROR_V2 -# define REQ_WARNING AFB_REQ_WARNING_V2 -# define REQ_NOTICE AFB_REQ_NOTICE_V2 -# define REQ_INFO AFB_REQ_INFO_V2 -# define REQ_DEBUG AFB_REQ_DEBUG_V2 +# define AFB_REQ_ERROR AFB_REQ_ERROR_V2 +# define AFB_REQ_WARNING AFB_REQ_WARNING_V2 +# define AFB_REQ_NOTICE AFB_REQ_NOTICE_V2 +# define AFB_REQ_INFO AFB_REQ_INFO_V2 +# define AFB_REQ_DEBUG AFB_REQ_DEBUG_V2 # endif @@ -229,3 +229,19 @@ typedef struct afb_service_itf afb_service_itf; #endif +#if !defined(AFB_BINDING_PRAGMA_NO_VERBOSE_UNPREFIX) +# if !defined(AFB_BINDING_PRAGMA_NO_VERBOSE_MACRO) +# define ERROR AFB_ERROR +# define WARNING AFB_WARNING +# define NOTICE AFB_NOTICE +# define INFO AFB_INFO +# define DEBUG AFB_DEBUG + +# define REQ_ERROR AFB_REQ_ERROR +# define REQ_WARNING AFB_REQ_WARNING +# define REQ_NOTICE AFB_REQ_NOTICE +# define REQ_INFO AFB_REQ_INFO +# define REQ_DEBUG AFB_REQ_DEBUG +# endif +#endif + |