OLD | NEW |
1 /* | 1 /* |
2 * err.c | 2 * err.c |
3 * | 3 * |
4 * error status reporting functions | 4 * error status reporting functions |
5 * | 5 * |
6 * David A. McGrew | 6 * David A. McGrew |
7 * Cisco Systems, Inc. | 7 * Cisco Systems, Inc. |
8 */ | 8 */ |
9 /* | 9 /* |
10 * | 10 * |
(...skipping 24 matching lines...) Expand all Loading... |
35 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | 35 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
36 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | 36 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
37 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 37 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | 38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
40 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 40 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
41 * OF THE POSSIBILITY OF SUCH DAMAGE. | 41 * OF THE POSSIBILITY OF SUCH DAMAGE. |
42 * | 42 * |
43 */ | 43 */ |
44 | 44 |
| 45 #ifdef HAVE_CONFIG_H |
| 46 #include <config.h> |
| 47 #endif |
| 48 |
45 #include "err.h" | 49 #include "err.h" |
46 | 50 |
47 #ifdef ERR_REPORTING_SYSLOG | 51 #ifdef ERR_REPORTING_SYSLOG |
48 # ifdef HAVE_SYSLOG_H | 52 # ifdef HAVE_SYSLOG_H |
49 # include <syslog.h> | 53 # include <syslog.h> |
50 # endif | 54 # endif |
51 #endif | 55 #endif |
52 | 56 |
53 | 57 |
54 /* err_level reflects the level of errors that are reported */ | 58 /* err_level reflects the level of errors that are reported */ |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 #endif | 143 #endif |
140 va_end(args); | 144 va_end(args); |
141 } | 145 } |
142 } | 146 } |
143 #endif /* SRTP_KERNEL_LINUX */ | 147 #endif /* SRTP_KERNEL_LINUX */ |
144 | 148 |
145 void | 149 void |
146 err_reporting_set_level(err_reporting_level_t lvl) { | 150 err_reporting_set_level(err_reporting_level_t lvl) { |
147 err_level = lvl; | 151 err_level = lvl; |
148 } | 152 } |
OLD | NEW |