You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "daniel-p-carvalho (via GitHub)" <gi...@apache.org> on 2023/09/21 15:13:49 UTC
[GitHub] [nuttx-apps] daniel-p-carvalho opened a new pull request, #2082: Fixes compiler warnings while printing uint32_t and int32_t values.
daniel-p-carvalho opened a new pull request, #2082:
URL: https://github.com/apache/nuttx-apps/pull/2082
## Summary
Fixes compiler warnings while printing uint32_t and int32_t values.
## Impact
None.
## Testing
Not tested. I don't have a board with INA226.
--
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
[GitHub] [nuttx-apps] acassis commented on a diff in pull request #2082: Fixes compiler warnings while printing uint32_t and int32_t values.
Posted by "acassis (via GitHub)" <gi...@apache.org>.
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
[GitHub] [nuttx-apps] xiaoxiang781216 merged pull request #2082: Fixes compiler warnings while printing uint32_t and int32_t values.
Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #2082:
URL: https://github.com/apache/nuttx-apps/pull/2082
--
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