You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2023/01/13 13:44:05 UTC

[GitHub] [nuttx] jlaitine commented on a diff in pull request #8107: Fix build warnings

jlaitine commented on code in PR #8107:
URL: https://github.com/apache/nuttx/pull/8107#discussion_r1069476037


##########
drivers/eeprom/i2c_xx24xx.c:
##########
@@ -472,7 +472,7 @@ static off_t ee24xx_seek(FAR struct file *filep, off_t offset, int whence)
     {
       filep->f_pos = newpos;
       ret = newpos;
-      finfo("SEEK newpos %d\n", newpos);
+      finfo("SEEK newpos %ld\n", (long)newpos);

Review Comment:
   Yes. I included inttypes.h and used PRIdOFF for off_t and %zu for size_t



-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org