[asterisk-commits] alecdavis: trunk r387296 - in /trunk: ./ main/utils.c

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


Author: alecdavis
Date: Thu May  2 01:47:16 2013
New Revision: 387296

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

Merged revisions 387295 from http://svn.asterisk.org/svn/asterisk/branches/11

Modified:
    trunk/   (props changed)
    trunk/main/utils.c

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

Modified: trunk/main/utils.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/utils.c?view=diff&rev=387296&r1=387295&r2=387296
==============================================================================
--- trunk/main/utils.c (original)
+++ trunk/main/utils.c Thu May  2 01:47:16 2013
@@ -45,6 +45,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"
@@ -981,11 +982,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