Main Page | Data Structures | File List | Data Fields | Globals

debug.c File Reference

#include <glib/gtypes.h>
#include <stdio.h>
#include <stdarg.h>
#include "debug.h"

Include dependency graph for debug.c:

Go to the source code of this file.

Functions

void enter_func (const char *name)
void leave_func (const char *name)
void dbg (const char *func, const char *format,...)
 dbg: : Name of function writing debug info.

Variables

static guint depth = 0
 This file is part of alarmd.


Function Documentation

void dbg const char *  func,
const char *  format,
  ...
 

dbg: : Name of function writing debug info.

: Format for the message being printed (printf like). @...: Values to fill into the format string.

Writes a debug message; should be used through DEBUG macro.

Definition at line 49 of file debug.c.

References depth.

void enter_func const char *  name  ) 
 

Definition at line 29 of file debug.c.

References depth.

void leave_func const char *  name  ) 
 

Definition at line 39 of file debug.c.

References depth.


Variable Documentation

guint depth = 0 [static]
 

This file is part of alarmd.

Contact Person: David Weinehall <david.weinehall@nokia.com>

Copyright (C) 2006 Nokia Corporation alarmd and libalarm are free software; you can redistribute them and/or modify them under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation.

alarmd and libalarm are distributed in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this software; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Definition at line 27 of file debug.c.

Referenced by dbg(), enter_func(), and leave_func().


Generated on Thu Dec 21 18:23:30 2006 for Alarmd by  doxygen 1.4.2