fix warning due to incorrect format string

Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
Steve Markgraf 2013-12-15 04:06:16 +01:00
parent 40ae519271
commit 0bb9df0341

View file

@ -125,10 +125,9 @@ int usrp_source::tune(double freq) {
pthread_mutex_lock(&m_u_mutex); pthread_mutex_lock(&m_u_mutex);
if (freq != m_center_freq) { if (freq != m_center_freq) {
r = rtlsdr_set_center_freq(dev, (uint32_t)freq); r = rtlsdr_set_center_freq(dev, (uint32_t)freq);
// fprintf(stderr, "Tuned to %i Hz.\n", (uint32_t)freq);
if (r < 0) if (r < 0)
fprintf(stderr, "Tuning to %lu Hz failed!\n", (uint32_t)freq); fprintf(stderr, "Tuning to %u Hz failed!\n", (uint32_t)freq);
else else
m_center_freq = freq; m_center_freq = freq;
} }