You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "acassis (via GitHub)" <gi...@apache.org> on 2023/09/21 19:06:19 UTC

[GitHub] [nuttx-apps] acassis commented on a diff in pull request #2082: Fixes compiler warnings while printing uint32_t and int32_t values.

acassis commented on code in PR #2082:
URL: https://github.com/apache/nuttx-apps/pull/2082#discussion_r1333492910


##########
examples/ina226/ina226_main.c:
##########
@@ -70,7 +71,7 @@ int main(int argc, FAR char *argv[])
           break;
         }
 
-      printf("U=%12u uV I=%12d uA\n", sample.voltage, sample.current);
+      printf("U=%12"PRIu32 "uV I=%12"PRIi32 "uA\n", sample.voltage, sample.current);

Review Comment:
   ```suggestion
         printf("U=%12"PRIu32 "uV I=%12"PRIi32 "uA\n", sample.voltage,
                sample.current);



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