mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
doc: clarified migration guide regarding PRIxx usage
This commit is contained in:
parent
7bf21e9092
commit
53b4806f00
@ -114,7 +114,7 @@ The types ``int32_t`` and ``uint32_t`` have been changed from the previous ``int
|
||||
- (unsigned) long
|
||||
|
||||
|
||||
The change mostly affects code that formats strings using types provided by ``<inttypes.h>``. Users will need to replace placeholders such as ``%i`` and ``%x`` with ``PRIi32`` and ``PRIxx`` respectively.
|
||||
The change mostly affects code that formats strings using types provided by ``<inttypes.h>``. When using these fixed-width types (e.g. ``uint32_t```), users will need to replace placeholders such as ``%i`` and ``%x`` with ``PRIi32`` and ``PRIx32`` respectively. Types *not* defined in ``<inttypes.h>`` (e.g. ``int``) do *not* need this special formatting.
|
||||
|
||||
In other cases, it should be noted that enums have the ``int`` type.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user