diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-04-05 10:07:55 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-04-05 10:07:55 +0200 |
commit | 04331cc45e03325c6470bc5285d5c09843b24afd (patch) | |
tree | aaca7d56b511c102f5155e66a48b4bc6261ed5b9 /src/verbose.c | |
parent | 98fe774e6e926fe36697a29280797166222fa973 (diff) |
refactored verbosity
Change-Id: Ibbf6645fbf1149687be9a7475773685cfb06b514
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/verbose.c')
-rw-r--r-- | src/verbose.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/verbose.c b/src/verbose.c new file mode 100644 index 00000000..7e46a333 --- /dev/null +++ b/src/verbose.c @@ -0,0 +1,29 @@ +/* + Copyright 2015 IoT.bzh + + author: José Bollo <jose.bollo@iot.bzh> + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +#include "verbose.h" + +#if !defined(NDEBUG) +int verbosity = 1; +#else +void verbose_error(const char *file, int line) +{ + syslog(LOG_ERR, "error file %s line %d", file, line); +} +#endif + |