This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to use integer value in NRF_LOG_INFO

Hello everybody,

I want to see integer number with use NRF_LOG_INFO . I try to this;

static int trial=0;		
.
.
.


trial++;
NRF_LOG_INFO("You have %d trial rights.", &trial );

But RTT_Viewer show like this;

"You have 536881776 trial rights."

I have to see like this;

"You have 1 trial rights."

Related