From af6d77f1080475fb24148fafafe2d03f9a3d3167 Mon Sep 17 00:00:00 2001 From: Alec L Davis Date: Thu, 2 May 2013 06:43:24 +0000 Subject: [PATCH] Add Asterisk Version to core show locks Assist with reporting 'core show locks' when submitting bug reports. Example below: =========================== == SVN-branch-1.8-... == Currently Held Locks =========================== (closes issue ASTERISK-21743) Reported by: alecdavis Tested by: alecdavis alecdavis (license 585) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@387294 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/utils.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main/utils.c b/main/utils.c index f4b9f37a18..2abae7c6b4 100644 --- a/main/utils.c +++ b/main/utils.c @@ -40,6 +40,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #endif #include "asterisk/network.h" +#include "asterisk/ast_version.h" #define AST_API_MODULE /* ensure that inlinable API functions will be built in lock.h if required */ #include "asterisk/lock.h" @@ -967,11 +968,12 @@ static char *handle_show_locks(struct ast_cli_entry *e, int cmd, struct ast_cli_ ast_str_append(&str, 0, "\n" "=======================================================================\n" - "=== Currently Held Locks ==============================================\n" + "=== %s\n" + "=== Currently Held Locks\n" "=======================================================================\n" "===\n" "=== (): (times locked)\n" - "===\n"); + "===\n", ast_get_version()); if (!str) return CLI_FAILURE;