How to print int64_t values in CYBT-343026-01

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
NeDh_4602711
Level 5
Level 5
5 solutions authored First solution authored 50 replies posted

Hi

I am using int64_t data type and I want to print it on WICED_BT_TRACE. I have tried % PRId64 as well as %f but it is not getting printed.

please help.

thanks and regards

Neeraj Dhekale

0 Likes
1 Solution

Hi NeDh_4602711 ,

I am sorry, Unfortunately no option to directly print 64 bit numbers in WICED_BT_TRACE. You may have to break it up and print. You may try an union defined with 1 32-bit array of size 2 and 1 64-bit integer so it is easy to use.

Regards,

Anjana

View solution in original post

3 Replies
SheetalJ
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 500 likes received

Hi Neeraj,

Can you try using %lld if it works?

0 Likes

I have tried with this as well but it is not working.

Regards

Neeraj

On Wed, 30 Sep 2020 at 9:28 AM, SheetalJ_96 <community-manager@cypress.com>

0 Likes

Hi NeDh_4602711 ,

I am sorry, Unfortunately no option to directly print 64 bit numbers in WICED_BT_TRACE. You may have to break it up and print. You may try an union defined with 1 32-bit array of size 2 and 1 64-bit integer so it is easy to use.

Regards,

Anjana