Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cast variable type based on format identifier #60

Merged
merged 2 commits into from
Nov 24, 2020
Merged

Conversation

yourslab
Copy link
Contributor

Only ever use base format specifiers and always cast to the standard C type (not a typedef).

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

topicType,
LogError( ( "Invalid input parameters pTopicBuffer: %p, pThingName: %p, "
"thingNameLength: %u, topicType: %d, pOutLength: %p.",
( void * ) pTopicBuffer, ( void * ) pThingName,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I personally like the presence of parameters on separate line, but that's just my style preference.

@yourslab yourslab merged commit 8fb07f0 into main Nov 24, 2020
@leegeth leegeth deleted the fix-logging-warnings branch November 25, 2020 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants