X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=include%2Flog.h;h=e9ee8e4967ffc65262b2595baf77a8721490024f;hb=991fe1e5f6458aa30ee82ad73b2f0411b74b1d3e;hp=ec0d64815c1f918cb5208c414db5976906820d59;hpb=249a12194decb4b7a06d717bcd5284d1467e759b;p=connman diff --git a/include/log.h b/include/log.h index ec0d648..e9ee8e4 100644 --- a/include/log.h +++ b/include/log.h @@ -2,7 +2,7 @@ * * Connection Manager * - * Copyright (C) 2007-2008 Intel Corporation. All rights reserved. + * Copyright (C) 2007-2009 Intel Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -26,12 +26,26 @@ extern "C" { #endif -#define DBG(fmt, arg...) connman_debug("%s: " fmt, __FUNCTION__ , ## arg) +/** + * SECTION:log + * @title: Logging premitives + * @short_description: Functions for logging error and debug information + */ extern void connman_info(const char *format, ...); extern void connman_error(const char *format, ...); extern void connman_debug(const char *format, ...); +/** + * DBG: + * @fmt: format string + * @arg...: list of arguments + * + * Simple macro around connman_debug() which also include the function + * name it is called in. + */ +#define DBG(fmt, arg...) connman_debug("%s:%s() " fmt, __FILE__, __FUNCTION__ , ## arg) + #ifdef __cplusplus } #endif