[Asterisk-code-review] lock: Replace ast mutex logger with ast mutex logger. (asterisk[13])
Richard Mudgett
asteriskteam at digium.com
Fri Oct 19 08:14:39 CDT 2018
Richard Mudgett has posted comments on this change. ( https://gerrit.asterisk.org/10521 )
Change subject: lock: Replace __ast_mutex_logger with ast_mutex_logger.
......................................................................
Patch Set 1: Code-Review-1
(2 comments)
https://gerrit.asterisk.org/#/c/10521/1//COMMIT_MSG
Commit Message:
https://gerrit.asterisk.org/#/c/10521/1//COMMIT_MSG@7
PS1, Line 7: lock: Replace __ast_mutex_logger with ast_mutex_logger.
This commit message needs updating because of the other comment.
https://gerrit.asterisk.org/#/c/10521/1/include/asterisk/lock.h
File include/asterisk/lock.h:
https://gerrit.asterisk.org/#/c/10521/1/include/asterisk/lock.h@244
PS1, Line 244: #define ast_mutex_logger(canlog, ...) do { if (canlog) ast_log(LOG_ERROR, __VA_ARGS__); else fprintf(stderr, __VA_ARGS__); } while (0)
: #define __ast_mutex_logger(...) ast_mutex_logger(canlog, __VA_ARGS__)
There is no real threat of API compatibility issues here. This "function" only exists if DEBUG_THREADS exists and is an internal implementation detail so there is no need to rename it.
In fact this should be moved to main/locks.c rather than being in the header. The only other file that references the define is utils/extconf.c which defines its own version anyway.
--
To view, visit https://gerrit.asterisk.org/10521
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: comment
Gerrit-Change-Id: I83b372cb0654c5c18eadc512f65a57fa6c2e9853
Gerrit-Change-Number: 10521
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Jenkins2 (1000185)
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Comment-Date: Fri, 19 Oct 2018 13:14:39 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: Yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20181019/51fa89ff/attachment.html>
More information about the asterisk-code-review
mailing list