STM32CubeWL/Middlewares/Third_Party/LoRaWAN/Mac
Matthijs Kooijman 1c17e31589 Fix printf format warnings
These warnings are caused because frequencies are stored as `uint32_t`,
which is `unsigned long`, while the printf format expects `int`. In
practice, this does not actually cause problems, since on STM32 gcc
`long` and `int` are both 32-bits and frequencies are never large enough
to cause signed vs unsigned ambiguity.

Since printf has no format specifiers for e.g. uint32_t (libc does have
some macros for this, but those really hurt readability), this is tricky
to fix in a portable way (other architectures or compilers might have
`uint32_t` equal to `unsigned int` instead of `unsigned long`), this fix
just casts the frequency to `unsigned` before passing it to printf (and
for good measure, also convert the specifier from `%d` to `%u`). This
does mean this printing will break if `int` is not at least 32-bits
(e.g. on AVR), but given the scope of this library, that should be
acceptable.
2022-12-15 20:27:13 +01:00
..
Region Fix printf format warnings 2022-12-15 20:27:13 +01:00
LoRaMac.c Release v1.3.0 2022-12-08 15:37:52 +01:00
LoRaMac.h Release v1.3.0 2022-12-08 15:37:52 +01:00
LoRaMacAdr.c Release v1.3.0 2022-12-08 15:37:52 +01:00
LoRaMacAdr.h Release v1.3.0 2022-12-08 15:37:52 +01:00
LoRaMacClassB.c Release v1.3.0 2022-12-08 15:37:52 +01:00
LoRaMacClassB.h Release v1.3.0 2022-12-08 15:37:52 +01:00
LoRaMacClassBConfig.h Release v1.2.0 2022-12-07 18:38:46 +01:00
LoRaMacClassBNvm.h Release v1.3.0 2022-12-08 15:37:52 +01:00
LoRaMacCommands.c Release v1.3.0 2022-12-08 15:37:52 +01:00
LoRaMacCommands.h Release v1.3.0 2022-12-08 15:37:52 +01:00
LoRaMacConfirmQueue.c Release v1.3.0 2022-12-08 15:37:52 +01:00
LoRaMacConfirmQueue.h Release v1.2.0 2022-12-07 18:38:46 +01:00
LoRaMacCrypto.c Release v1.3.0 2022-12-08 15:37:52 +01:00
LoRaMacCrypto.h Release v1.3.0 2022-12-08 15:37:52 +01:00
LoRaMacCryptoNvm.h Release v1.3.0 2022-12-08 15:37:52 +01:00
LoRaMacHeaderTypes.h Release v1.2.0 2022-12-07 18:38:46 +01:00
LoRaMacInterfaces.h Fix comments in LoRaMacCallback_t 2022-12-15 08:53:55 +01:00
LoRaMacMessageTypes.h Release v1.2.0 2022-12-07 18:38:46 +01:00
LoRaMacParser.c Release v1.3.0 2022-12-08 15:37:52 +01:00
LoRaMacParser.h Release v1.2.0 2022-12-07 18:38:46 +01:00
LoRaMacSerializer.c Release v1.3.0 2022-12-08 15:37:52 +01:00
LoRaMacSerializer.h Release v1.2.0 2022-12-07 18:38:46 +01:00
LoRaMacTest.h Release v1.2.0 2022-12-07 18:38:46 +01:00
LoRaMacTypes.h Release v1.3.0 2022-12-08 15:37:52 +01:00
LoRaMacVersion.h Release v1.3.0 2022-12-08 15:37:52 +01:00
secure-element-nvm.h Release v1.3.0 2022-12-08 15:37:52 +01:00
secure-element.h Release v1.3.0 2022-12-08 15:37:52 +01:00