From: Joshua Colp Date: Mon, 15 Dec 2008 15:21:23 +0000 (+0000) Subject: Update to work with new ast_str changes. X-Git-Tag: 1.6.2.0-beta1~617 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6df30fb8cc4e1e74705435ecb883e14966ba9972;p=thirdparty%2Fasterisk.git Update to work with new ast_str changes. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@164208 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/utils.c b/main/utils.c index 6651f92814..e3d64c3dc2 100644 --- a/main/utils.c +++ b/main/utils.c @@ -820,7 +820,7 @@ void log_show_lock(void *this_lock_addr) it's acquired... */ if (lock_info->locks[i].lock_addr == this_lock_addr) { append_lock_information(&str, lock_info, i); - ast_log(LOG_NOTICE, "%s", str->str); + ast_log(LOG_NOTICE, "%s", ast_str_buffer(str)); break; } } @@ -893,7 +893,7 @@ static char *handle_show_locks(struct ast_cli_entry *e, int cmd, struct ast_cli_ if (!str) return CLI_FAILURE; - ast_cli(a->fd, "%s", str->str); + ast_cli(a->fd, "%s", ast_str_buffer(str)); ast_free(str);