<p>George Joseph <strong>posted comments</strong> on this change.</p><p><a href="https://gerrit.asterisk.org/6618">View Change</a></p><p>Patch set 1:</p><p>(1 comment)</p><ul style="list-style: none; padding-left: 20px;"><li><p><a href="https://gerrit.asterisk.org/#/c/6618/1/main/cli.c">File main/cli.c:</a></p><ul style="list-style: none; padding-left: 20px;"><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/6618/1/main/cli.c@154">Patch Set #1, Line 154:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;">unsigned int ast_debug_get_by_file(const char *file)<br>{<br> struct module_level *ml;<br> unsigned int res = 0;<br><br> AST_RWLIST_RDLOCK(&debug_modules);<br> AST_LIST_TRAVERSE(&debug_modules, ml, entry) {<br> if (!strcasecmp(ml->module, file)) {<br> res = ml->level;<br> break;<br> }<br> }<br> AST_RWLIST_UNLOCK(&debug_modules);<br><br> return res;<br>}<br></pre></blockquote></p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">This appears to be the exact same code as ast_debug_get_module. You<br>should be able to dump this and just call that function.</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">Duh. You're right.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/6618">change 6618</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/6618"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Icc0af41837f3b1679dec7af21fa32cd1f7469f6e </div>
<div style="display:none"> Gerrit-Change-Number: 6618 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 28 Sep 2017 16:15:16 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>