Skip to content
Success

Changes

Summary

  1. Fix time_t prints for debian 13 armv7l (details)
  2. Use %zu for size_t (details)
Commit 7dd8ca5e4b4b82498af6981af4a0fcad8980df30 by Oliver Smith
Fix time_t prints for debian 13 armv7l

In Debian 13 armv7l, time_t and suseconds_t are "long long int" instead
of "long unsigned int" as seen on x86_64 and aarch64. Fix it by casting
to "long unsigned int".

Related: OS#6828
Change-Id: I0b29930a8797fbf0c9d8bfde40bcef9702629834
The file was modifiedtests/osmo-pcap-test/pcap.c
The file was modifiedtests/osmux/osmux_test.c
The file was modifiedsrc/jibuf.c
The file was modifiedtests/osmux/osmux_output_test.c
The file was modifiedexamples/ipa-stream-client.c
The file was modifiedtests/osmux/osmux_input_test.c
The file was modifiedtests/stream/stream_test.c
The file was modifiedtests/jibuf/jibuf_tool.c
The file was modifiedtests/jibuf/jibuf_test.c
Commit c49977d48bc9f18d4124caae3e65f860ebc28136 by Oliver Smith
Use %zu for size_t

Fix that this doesn't build for debian 13 armv7l with errors like:

  osmo-amr-inspect.c:138:53: error: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'size_t' {aka 'unsigned int'} [-Werror=format=]
    138 |                 printf("  Payload has no padding (%lu bits with offset 10)\n", ft_bits);
        |                                                   ~~^                          ~~~~~~~
        |                                                     |                          |
        |                                                     long unsigned int          size_t {aka unsigned int}

Related: OS#6828
Change-Id: I81f6d26623544c259199099beb54d14f5788a9e4
The file was modifiedtests/stream/stream_test.c
The file was modifiedutils/osmo-amr-inspect.c