commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 05/05: audio: Fixes string format bug in AL


From: git
Subject: [Commit-gnuradio] [gnuradio] 05/05: audio: Fixes string format bug in ALSA error messages.
Date: Wed, 1 Oct 2014 15:49:18 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

trondeau pushed a commit to branch maint
in repository gnuradio.

commit ba53f10b07854ec4b34ac6d97bcc715a0ce7a0d3
Author: Volker Schroer <address@hidden>
Date:   Tue Sep 30 22:19:01 2014 -0400

    audio: Fixes string format bug in ALSA error messages.
    
    Addresses issue #736.
---
 gr-audio/lib/alsa/alsa_sink.cc   | 2 +-
 gr-audio/lib/alsa/alsa_source.cc | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gr-audio/lib/alsa/alsa_sink.cc b/gr-audio/lib/alsa/alsa_sink.cc
index cfb2475..4238f11 100644
--- a/gr-audio/lib/alsa/alsa_sink.cc
+++ b/gr-audio/lib/alsa/alsa_sink.cc
@@ -274,7 +274,7 @@ namespace gr {
       d_buffer = new char[d_buffer_size_bytes];
 
       if(CHATTY_DEBUG) {
-        GR_LOG_DEBUG(d_logger, boost::format("[%1%]: sample resolution = %d 
bits") \
+        GR_LOG_DEBUG(d_logger,boost::format("[%1%]: sample resolution = %2% 
bits") \
                      % snd_pcm_name(d_pcm_handle)                       \
                      % snd_pcm_hw_params_get_sbits(d_hw_params));
       }
diff --git a/gr-audio/lib/alsa/alsa_source.cc b/gr-audio/lib/alsa/alsa_source.cc
index 92a7bc5..6297c33 100644
--- a/gr-audio/lib/alsa/alsa_source.cc
+++ b/gr-audio/lib/alsa/alsa_source.cc
@@ -252,7 +252,7 @@ namespace gr {
       d_buffer = new char[d_buffer_size_bytes];
 
       if(CHATTY_DEBUG) {
-        GR_LOG_DEBUG(d_logger, boost::format("[%1%]: sample resolution = %d 
bits") \
+        GR_LOG_DEBUG(d_logger, boost::format("[%1%]: sample resolution = %2% 
bits") \
                      % snd_pcm_name(d_pcm_handle)                       \
                      % snd_pcm_hw_params_get_sbits(d_hw_params));
       }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]