From 25fc7f1860f31ae31f14f17449fae8105d21f628 Mon Sep 17 00:00:00 2001 From: Mihail Zenkov Date: Wed, 30 Mar 2016 20:48:17 +0000 Subject: [PATCH] Fix broken logf --- apps/playback.c | 2 +- apps/plugin.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/playback.c b/apps/playback.c index d1fe8ca0ea..8a25375fec 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -1704,7 +1704,7 @@ static bool audio_buffer_codec(struct track_info *track_info, if (track_info->codec_hid >= 0) { - logf("Buffered codec: %d", afmt); + logf("Buffered codec: %d", track_info->codec_hid); return true; } diff --git a/apps/plugin.c b/apps/plugin.c index c6b9744ed4..d14b6468e0 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -155,7 +155,7 @@ static void plugin_check_open_close__exit(void) if (open_files_bitmap_is_clear(&open_files_bitmap)) return; - logf("Plugin '%s' leaks file handles", plugin); + logf("Plugin '%s' leaks file handles", current_plugin); static const char *lines[] = { ID2P(LANG_PLUGIN_ERROR), "#leak-file-handles" };