[asterisk-commits] alecdavis: branch 11 r387295 - in /branches/11: ./ main/utils.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu May 2 01:45:33 CDT 2013


Author: alecdavis
Date: Thu May  2 01:45:31 2013
New Revision: 387295

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=387295
Log:
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

Modified:
    branches/11/   (props changed)
    branches/11/main/utils.c

Propchange: branches/11/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: branches/11/main/utils.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/main/utils.c?view=diff&rev=387295&r1=387294&r2=387295
==============================================================================
--- branches/11/main/utils.c (original)
+++ branches/11/main/utils.c Thu May  2 01:45:31 2013
@@ -47,6 +47,7 @@
 #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"
@@ -985,11 +986,12 @@
 
 	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;




More information about the asterisk-commits mailing list