~ubuntu-branches/debian/squeeze/alpine/squeeze

« back to all changes in this revision

Viewing changes to web/src/alpined.d/debug.h

  • Committer: Bazaar Package Importer
  • Author(s): Asheesh Laroia
  • Date: 2007-02-17 13:17:42 UTC
  • Revision ID: james.westby@ubuntu.com-20070217131742-99x5c6cpg1pbkdhw
Tags: upstream-0.82+dfsg
ImportĀ upstreamĀ versionĀ 0.82+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-----------------------------------------------------------------------
 
2
 $Id: debug.h 130 2006-09-22 04:39:36Z mikes@u.washington.edu $
 
3
  -----------------------------------------------------------------------*/
 
4
 
 
5
/* ========================================================================
 
6
 * Copyright 2006-2007 University of Washington
 
7
 *
 
8
 * Licensed under the Apache License, Version 2.0 (the "License");
 
9
 * you may not use this file except in compliance with the License.
 
10
 * You may obtain a copy of the License at
 
11
 *
 
12
 *     http://www.apache.org/licenses/LICENSE-2.0
 
13
 *
 
14
 * ========================================================================
 
15
 */
 
16
 
 
17
#ifndef _WEB_ALPINE_DEBUG_INCLUDED
 
18
#define _WEB_ALPINE_DEBUG_INCLUDED
 
19
 
 
20
 
 
21
#ifndef DEBUG
 
22
/*
 
23
 * support dprint regardless so we leave at least a few
 
24
 * footsteps in syslog
 
25
 */
 
26
#undef    dprint(x)
 
27
#define   dprint(x)     { output_debug_msg x ; }
 
28
#endif
 
29
 
 
30
 
 
31
/*
 
32
 * Use these to for dprint() debug level arg to force
 
33
 * debug output (typically to syslog())
 
34
 */
 
35
#define SYSDBG          0x8000
 
36
#define SYSDBG_ALERT    SYSDBG+1
 
37
#define SYSDBG_ERR      SYSDBG+2
 
38
#define SYSDBG_INFO     SYSDBG+3
 
39
#define SYSDBG_DEBUG    SYSDBG+4
 
40
 
 
41
 
 
42
/* exported prototypes */
 
43
void    debug_init(void);
 
44
 
 
45
 
 
46
#endif /* _WEB_ALPINE_DEBUG_INCLUDED */