Re: uint32_t typedef differences causes issues

Kumar Gala

On Jan 19, 2017, at 9:15 AM, Marcus Shawcroft <marcus.shawcroft(a)> wrote:

#include <stdint.h>
printf("blah %" PRIu32 " more blah", v);

Not having much luck there, but its possible I’m missing something obvious because of lack of sleep:

In file included from /home/galak/git/zephyr-project/subsys/bluetooth/controller/hci/hci_driver.c:24:0:
/home/galak/git/zephyr-project/subsys/bluetooth/controller/hci/hci_driver.c: In function 'hci_driver_open':
/home/galak/git/zephyr-project/subsys/bluetooth/controller/hci/hci_driver.c:388:33: error: expected ')' before 'PRIu32'
BT_ERR("Required RAM size: %" PRIu32 ", supplied: %u.", err,

That would be my fault, my example above is missing:

#include <inttypes.h>

Ah, that fixes things.

Now to the question about how uint32_t should be defined ;)

- k

Join to automatically receive all group messages.