Commit fc9736c1 authored by Dan Williams's avatar Dan Williams
Browse files

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
parent 0235629e
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment