Update to work with new ast_str changes.
authorJoshua Colp <jcolp@digium.com>
Mon, 15 Dec 2008 15:21:23 +0000 (15:21 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 15 Dec 2008 15:21:23 +0000 (15:21 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@164208 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/utils.c

index 6651f92..e3d64c3 100644 (file)
@@ -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);