]> code.delx.au - pulseaudio/commitdiff
card-restore: Log the restored profile name.
authorTanu Kaskinen <tanuk@iki.fi>
Mon, 19 Nov 2012 10:59:31 +0000 (12:59 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Wed, 19 Dec 2012 10:31:47 +0000 (12:31 +0200)
src/modules/module-card-restore.c

index 7d101c5ecead10dff5dc07feb89676038332c624..643e07416f652d375404396f88fa3eb6330887be 100644 (file)
@@ -377,8 +377,8 @@ static pa_hook_result_t card_new_hook_callback(pa_core *c, pa_card_new_data *new
 
     if (e->profile[0]) {
         if (!new_data->active_profile) {
-            pa_log_info("Restoring profile for card %s.", new_data->name);
             pa_card_new_data_set_profile(new_data, e->profile);
+            pa_log_info("Restored profile '%s' for card %s.", new_data->active_profile, new_data->name);
             new_data->save_profile = TRUE;
 
         } else