2004-08-23 Dan Willemsen <dan@willemsen.us>
* dispatcher-daemon/NetworkManagerDispatcher.c info-daemon/NetworkManagerInfo.[ch] info-daemon/NetworkManagerInfoDbus.c info-daemon/NetworkManagerInfoPassphraseDialog.c src/NetworkManager.c src/NetworkManagerAP.c src/NetworkManagerAPList.c src/NetworkManagerDbus.c src/NetworkManagerDevice.c src/NetworkManagerPolicy.c src/NetworkManagerUtils.[ch] src/NetworkManagerWireless.c - Used syslog functions for logging instead of NM_DEBUG_DISPLAY & fprintf * src/NetworkManager.c - Fixed usage wording for --no-daemon git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@61 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:

committed by
Dan Williams

parent
07258fd5e1
commit
a4afafce03
@@ -52,7 +52,7 @@ gboolean nm_try_acquire_mutex (GMutex *mutex, const char *func)
|
||||
if (g_mutex_trylock (mutex))
|
||||
{
|
||||
#ifdef LOCKING_DEBUG
|
||||
if (func) NM_DEBUG_PRINT_2 ("MUTEX: %s got mutex 0x%X\n", func, mutex);
|
||||
if (func) syslog (LOG_DEBUG, "MUTEX: %s got mutex 0x%X", func, mutex);
|
||||
#endif
|
||||
return (TRUE);
|
||||
}
|
||||
@@ -75,7 +75,7 @@ void nm_unlock_mutex (GMutex *mutex, const char *func)
|
||||
g_return_if_fail (mutex != NULL);
|
||||
|
||||
#ifdef LOCKING_DEBUG
|
||||
if (func) NM_DEBUG_PRINT_2 ("MUTEX: %s released mutex 0x%X\n", func, mutex);
|
||||
if (func) syslog (LOG_DEBUG, "MUTEX: %s released mutex 0x%X", func, mutex);
|
||||
#endif
|
||||
|
||||
g_mutex_unlock (mutex);
|
||||
@@ -123,7 +123,7 @@ int nm_get_network_control_socket (void)
|
||||
if (fd >= 0)
|
||||
return (fd);
|
||||
|
||||
NM_DEBUG_PRINT ("nm_get_network_control_socket() could not get network control socket.\n");
|
||||
syslog (LOG_ERR, "nm_get_network_control_socket() could not get network control socket.");
|
||||
return (-1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user