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

how to print long long int (s64_t) values using printk or printf

Hello,

I would like to print signed long long int (s64_t ) values using printk or printf.

I tried some suggestions I found online %lli , %lld but they did not work.

Please advise.

Thank you.

Kind regards

Mohamed

Parents Reply
  • Hi,

     

    Learner said:
    I need to be able to print all types of values including float, intx_t int64_t etc... So, which lib should I be including?

     I would recommend that you setup a project that prints the types you want to print, via printk() and/or printf(), then set your local project configuration wrt. each standard libc, and see which one fits your needs.

     

    Kind regards,

    Håkon

      

Children
Related