You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/09/26 16:29:45 UTC

[GitHub] [mynewt-core] nkaje opened a new pull request #2018: trng_test: fix compile time warnings

nkaje opened a new pull request #2018: trng_test: fix compile time warnings
URL: https://github.com/apache/mynewt-core/pull/2018
 
 
   While building for simulator on Linux, the following warnings were
   observed.
   
   ******************************************************************
   error: format ‘%ld’ expects argument of type ‘long int’, \
   but argument 2 has type ‘uint32_t {aka unsigned int}’ \
   [-Werror=format=] console_printf("monobit: (%ld/%d) %f, \
   block4: (%ld/%d) %f, block8: (%ld/%d) %f\n",
   ******************************************************************
   
   Cast blksz, monobit_fails, block4_fails and block8_fails variables
   when using in console_printf().
   
   This change builds makes the test compatible for the simulator as well
   as da1469x-dk-pro.
   
   Signed-off-by: Naveen Kaje <na...@juul.com>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services