File: 0001-Fix-broken-printf-format-string.patch

package info (click to toggle)
soapyairspy 0.2.0-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 200 kB
  • sloc: cpp: 910; makefile: 8
file content (36 lines) | stat: -rw-r--r-- 1,130 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From e0358b57441c830132b2f2635d30d364ec9cdd4a Mon Sep 17 00:00:00 2001
From: "Christian W. Zuckschwerdt" <christian@zuckschwerdt.org>
Date: Sat, 6 Apr 2024 00:19:39 +0200
Subject: [PATCH 1/5] Fix broken printf format string

Closes https://github.com/pothosware/SoapySDR/issues/433

Co-authored-by: gmbertani <gmbertani@users.noreply.github.com>
---
 Settings.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Settings.cpp b/Settings.cpp
index ec090ff..3e45819 100644
--- a/Settings.cpp
+++ b/Settings.cpp
@@ -23,6 +23,7 @@
  */
 
 #include "SoapyAirspy.hpp"
+#include <cinttypes>
 
 SoapyAirspy::SoapyAirspy(const SoapySDR::Kwargs &args)
 {
@@ -62,7 +63,7 @@ SoapyAirspy::SoapyAirspy(const SoapySDR::Kwargs &args)
         if (airspy_open_sn(&dev, serial) != AIRSPY_SUCCESS) {
             throw std::runtime_error("Unable to open AirSpy device with serial " + serialstr.str());
         }
-        SoapySDR_logf(SOAPY_SDR_DEBUG, "Found AirSpy device: serial = %16Lx", serial);
+        SoapySDR_logf(SOAPY_SDR_DEBUG, "Found AirSpy device: serial = %" PRIx64, serial);
     }
     else
     {
-- 
2.47.3