diff options
author | Alec L Davis <sivad.a@paradise.net.nz> | 2013-05-02 06:47:16 +0000 |
---|---|---|
committer | Alec L Davis <sivad.a@paradise.net.nz> | 2013-05-02 06:47:16 +0000 |
commit | 0b8769546036c68db6170505ef00abcba100c76a (patch) | |
tree | 7a869a7f8b94cd24ad9e5c1f6973c445aeb9685b /main/utils.c | |
parent | eea6df46d514d518bdfdfc4143aa8476a052d2fa (diff) |
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)
........
Merged revisions 387294 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 387295 from http://svn.asterisk.org/svn/asterisk/branches/11
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@387296 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/utils.c')
-rw-r--r-- | main/utils.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/main/utils.c b/main/utils.c index cc9dee38e..fde9b953b 100644 --- a/main/utils.c +++ b/main/utils.c @@ -45,6 +45,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" @@ -981,11 +982,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" "=== <pending> <lock#> (<file>): <lock type> <line num> <function> <lock name> <lock addr> (times locked)\n" - "===\n"); + "===\n", ast_get_version()); if (!str) return CLI_FAILURE; |