# HG changeset patch # User Paul Aurich # Date 1251172473 0 # Node ID 3896cbf6336ad1920319cd55959aa44e7de9b420 # Parent 1e529b03ec813f29bd1c9e9e1ad06724537530fc Display the username in the debug log when disconnecting an account. diff -r 1e529b03ec81 -r 3896cbf6336a libpurple/account.c --- a/libpurple/account.c Tue Aug 25 01:23:37 2009 +0000 +++ b/libpurple/account.c Tue Aug 25 03:54:33 2009 +0000 @@ -1206,11 +1206,14 @@ purple_account_disconnect(PurpleAccount *account) { PurpleConnection *gc; + const char *username; g_return_if_fail(account != NULL); g_return_if_fail(!purple_account_is_disconnected(account)); - purple_debug_info("account", "Disconnecting account %p\n", account); + username = purple_account_get_username(account); + purple_debug_info("account", "Disconnecting account %s (%p)\n", + username ? username : "(null)", account); account->disconnecting = TRUE;