-
-
Notifications
You must be signed in to change notification settings - Fork 83
feat(Log): Add macros for conditional log print and rc handling #301
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
Conversation
|
There's a couple of spots where a log print will be surrounded by a simple if-check on a I thought it would be nice to have a macro for such cases to keep things a bit more clean going foward. What do you think? Then could standardize these wrapper functions like so:into RC to string handlinginto |
404784a to
493445c
Compare
|
Looks nice! We could probably add this part into the macro as well |
493445c to
5490cef
Compare
|
Did a quick check and |
h2zero
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
|
Hm seems like I did something wrong. |
|
Ahh, no worries lol. I always rebase locally then push -f to the branch before merge but for others PR's I use the rebase and merge option and or squash |
|
There's no way to resolve it through the github web ui is there? I see a "revert" button but it seems like that will just create more commits... |
|
A merge commit isn't going to hurt anything, it's just not my preference. Next time just do a squash to a single commit or however many you want and rebase to master from there. Then you can force push to your branch (carefully lol). After that there will be a straight line for the history. Oh and use the rebase merge option on GitHub, if the button goes grey then you know you need to do the above process. |
rc != 0).rcand implicitly appends"; rc=%d %s"to the format string in order to display return code and string representation viaNimBLEUtils::returnCodeToString.rc != 0.