Marian Buschsieweke
54f4cd7cd1
sys/matstat: fix compilation with newlib
...
newlib (nano) does not support 64 bit types (neither in stdio nor with
corresponding `PRI*64` macros). With GCC 13.2.1 (as shipped in Ubuntu
24.04.1 LTS), this triggers the following compilation error (even with
`ENABLE_DEBUG == 0`):
sys/matstat/matstat.c:57:21: error: expected ')' before 'PRIu64'
57 | DEBUG("Var: (%" PRIu64 " / (%" PRId32 " - 1)) = %" PRIu64 "\n",
| ^~~~~~
This fixes the issue by falling back to printing 32 bit values when
the `PRIu64` macro is not defined. A `!trunc` is appended when the
64 bit exceeds the range of [0:UINT32_MAX].
2024-10-09 22:23:40 +02:00
..
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-07-29 11:45:58 +02:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-07-29 11:45:58 +02:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-03-27 10:28:12 +01:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-03-27 10:28:12 +01:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-06-11 18:26:14 +02:00
2024-03-26 14:54:22 +01:00
2024-03-27 10:28:12 +01:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-04-03 13:22:51 +02:00
2024-03-27 10:28:12 +01:00
2024-09-25 10:00:58 +02:00
2024-03-26 14:54:22 +01:00
2024-07-29 11:45:58 +02:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2022-12-19 13:03:45 +01:00
2024-07-13 04:35:21 +02:00
2024-10-09 13:03:52 +02:00
2024-03-26 14:54:22 +01:00
2024-04-08 16:42:45 +02:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-03-26 10:00:24 +01:00
2024-03-26 10:00:24 +01:00
2024-10-09 22:23:40 +02:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-10-09 13:03:52 +02:00
2024-04-08 11:20:14 +02:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-04-04 11:24:04 +00:00
2024-04-08 11:20:14 +02:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-07-29 11:45:58 +02:00
2024-03-26 14:54:22 +01:00
2024-03-27 10:28:12 +01:00
2024-05-31 19:54:10 +02:00
2024-09-07 12:12:22 +02:00
2023-06-15 10:24:54 +02:00
2024-05-31 23:29:09 +02:00
2024-02-28 11:49:05 +01:00
2024-03-26 14:54:22 +01:00
2024-03-27 16:39:56 +00:00
2024-08-22 17:49:39 +02:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-10-02 22:17:08 +02:00
2024-03-27 10:28:12 +01:00
2024-02-28 11:49:05 +01:00
2024-03-26 14:54:22 +01:00
2024-02-09 15:24:22 +01:00
2024-02-09 15:24:22 +01:00
2024-02-09 15:24:22 +01:00
2024-02-09 15:24:22 +01:00
2024-02-09 15:31:21 +01:00
2024-02-09 15:24:22 +01:00
2024-02-09 15:24:22 +01:00
2024-07-29 11:45:58 +02:00
2024-07-29 11:45:58 +02:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2023-12-21 12:02:19 +01:00
2024-03-26 14:54:22 +01:00
2024-07-29 11:45:58 +02:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:54:22 +01:00
2024-05-15 11:20:38 +02:00
2024-05-15 11:20:38 +02:00
2024-03-26 14:54:22 +01:00
2024-08-20 20:52:37 +02:00
2024-05-24 19:19:40 +02:00
2023-02-27 15:09:08 +01:00
2024-03-27 10:28:12 +01:00
2023-08-31 14:38:49 +02:00
2024-05-29 11:32:22 +02:00
2024-02-28 11:49:05 +01:00