File: 0001-fix-for-https-github.com-raspberrypi-pico-sdk-issues.patch

package info (click to toggle)
pico-sdk 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 26,960 kB
  • sloc: ansic: 150,165; asm: 13,474; python: 2,885; cpp: 2,192; yacc: 381; lex: 270; makefile: 33; sh: 15; javascript: 13
file content (48 lines) | stat: -rw-r--r-- 1,733 bytes parent folder | download | duplicates (2)
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
37
38
39
40
41
42
43
44
45
46
47
48
From: Johannes Schauer Marin Rodrigues <josch@debian.org>
Date: Sun, 16 Mar 2025 23:30:31 +0100
Subject: fix for https://github.com/raspberrypi/pico-sdk/issues/1690

Bug-Debian: https://bugs.debian.org/953844
Forwarded: not-needed
---
 test/pico_float_test/pico_double_test.c  | 1 +
 test/pico_stdlib_test/pico_stdlib_test.c | 1 +
 test/pico_time_test/pico_time_test.c     | 1 +
 3 files changed, 3 insertions(+)

diff --git a/test/pico_float_test/pico_double_test.c b/test/pico_float_test/pico_double_test.c
index b844e15..7462f2b 100644
--- a/test/pico_float_test/pico_double_test.c
+++ b/test/pico_float_test/pico_double_test.c
@@ -21,6 +21,7 @@
 // certain versions of GCC and newlib which causes omission of PRIx64
 #include <sys/types.h>
 #include "inttypes.h"
+#define PRIx64 "lx"
 
 #define test_assert(x) ({ if (!(x)) { printf("Assertion failed: ");puts(#x);printf("  at " __FILE__ ":%d\n", __LINE__); exit(-1); } })
 
diff --git a/test/pico_stdlib_test/pico_stdlib_test.c b/test/pico_stdlib_test/pico_stdlib_test.c
index 11f1f79..d8e31e0 100644
--- a/test/pico_stdlib_test/pico_stdlib_test.c
+++ b/test/pico_stdlib_test/pico_stdlib_test.c
@@ -12,6 +12,7 @@
 #include "pico/stdlib.h"
 #include "pico/bit_ops.h"
 #include <stdlib.h>
+#define PRIu64 "lu"
 
 void test_builtin_bitops() {
     int32_t x = 0;
diff --git a/test/pico_time_test/pico_time_test.c b/test/pico_time_test/pico_time_test.c
index b8f4cba..1bcb0f1 100644
--- a/test/pico_time_test/pico_time_test.c
+++ b/test/pico_time_test/pico_time_test.c
@@ -23,6 +23,7 @@
 #include <sys/types.h>
 #include <inttypes.h>
 PICOTEST_MODULE_NAME("pico_time_test", "pico_time test harness");
+#define PRIi64 "li"
 
 #define NUM_TIMEOUTS 500
 #define MAX_TIMERS_PER_POOL 250