mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-23 22:45:39 +00:00
Update to work with new ast_str changes.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@164208 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -820,7 +820,7 @@ void log_show_lock(void *this_lock_addr)
|
|||||||
it's acquired... */
|
it's acquired... */
|
||||||
if (lock_info->locks[i].lock_addr == this_lock_addr) {
|
if (lock_info->locks[i].lock_addr == this_lock_addr) {
|
||||||
append_lock_information(&str, lock_info, i);
|
append_lock_information(&str, lock_info, i);
|
||||||
ast_log(LOG_NOTICE, "%s", str->str);
|
ast_log(LOG_NOTICE, "%s", ast_str_buffer(str));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -893,7 +893,7 @@ static char *handle_show_locks(struct ast_cli_entry *e, int cmd, struct ast_cli_
|
|||||||
if (!str)
|
if (!str)
|
||||||
return CLI_FAILURE;
|
return CLI_FAILURE;
|
||||||
|
|
||||||
ast_cli(a->fd, "%s", str->str);
|
ast_cli(a->fd, "%s", ast_str_buffer(str));
|
||||||
|
|
||||||
ast_free(str);
|
ast_free(str);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user