mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-23 16:40:33 +01:00
2006-10-01 Dan Williams <dcbw@redhat.com>
* utils/nm-utils.h - Clean up formatting of debug/info/warning log messages git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2043 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
0235629ed2
commit
fc9736c149
2 changed files with 11 additions and 6 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2006-10-01 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* utils/nm-utils.h
|
||||
- Clean up formatting of debug/info/warning log messages
|
||||
|
||||
2006-09-27 Robert Love <rml@novell.com>
|
||||
|
||||
Patch by Tambet Ingo <tambet@ximian.com>:
|
||||
|
|
|
|||
|
|
@ -63,13 +63,13 @@ G_STMT_END
|
|||
#define nm_info(fmt, args...) \
|
||||
G_STMT_START \
|
||||
{ \
|
||||
g_message ("<information>\t" fmt "\n", ##args); \
|
||||
g_message ("<info> " fmt "\n", ##args); \
|
||||
} G_STMT_END
|
||||
|
||||
#define nm_info_str(fmt_str, args...) \
|
||||
G_STMT_START \
|
||||
{ \
|
||||
g_message ("<information>\t%s\n", fmt_str, ##args); \
|
||||
g_message ("<info> %s\n", fmt_str, ##args); \
|
||||
} G_STMT_END
|
||||
|
||||
#define nm_debug(fmt, args...) \
|
||||
|
|
@ -77,7 +77,7 @@ G_STMT_START \
|
|||
{ \
|
||||
gdouble _timestamp; \
|
||||
nm_get_timestamp (&_timestamp); \
|
||||
g_debug ("<debug info>\t[%f] %s (): " fmt "\n", _timestamp, \
|
||||
g_debug ("<debug> [%f] %s(): " fmt "\n", _timestamp, \
|
||||
G_STRFUNC, ##args); \
|
||||
} G_STMT_END
|
||||
|
||||
|
|
@ -86,21 +86,21 @@ G_STMT_START \
|
|||
{ \
|
||||
gdouble _timestamp; \
|
||||
nm_get_timestamp (&_timestamp); \
|
||||
g_debug ("<debug info>\t[%f] %s (): %s\n", _timestamp, \
|
||||
g_debug ("<debug> [%f] %s(): %s\n", _timestamp, \
|
||||
G_STRFUNC, fmt_str, ##args); \
|
||||
} G_STMT_END
|
||||
|
||||
#define nm_warning(fmt, args...) \
|
||||
G_STMT_START \
|
||||
{ \
|
||||
g_warning ("<WARNING>\t %s (): " fmt "\n", \
|
||||
g_warning ("<WARN> %s(): " fmt "\n", \
|
||||
G_STRFUNC, ##args); \
|
||||
} G_STMT_END
|
||||
|
||||
#define nm_warning_str(fmt_str, args...) \
|
||||
G_STMT_START \
|
||||
{ \
|
||||
g_warning ("<WARNING>\t %s (): %s\n", \
|
||||
g_warning ("<WARN> %s(): %s\n", \
|
||||
G_STRFUNC, fmt_str, ##args); \
|
||||
} G_STMT_END
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue