[asterisk-commits] coreyfarrell: branch 11 r433549 - /branches/11/include/asterisk/utils.h

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Mar 27 07:25:18 CDT 2015


Author: coreyfarrell
Date: Fri Mar 27 07:25:05 2015
New Revision: 433549

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=433549
Log:
Fix link error for utils/aelparse.

Use the standard ast_log instead of ast_log_safe for STANDALONE programs.

Review: https://reviewboard.asterisk.org/r/4538/

Modified:
    branches/11/include/asterisk/utils.h

Modified: branches/11/include/asterisk/utils.h
URL: http://svnview.digium.com/svn/asterisk/branches/11/include/asterisk/utils.h?view=diff&rev=433549&r1=433548&r2=433549
==============================================================================
--- branches/11/include/asterisk/utils.h (original)
+++ branches/11/include/asterisk/utils.h Fri Mar 27 07:25:05 2015
@@ -494,8 +494,13 @@
 #define ast_free free
 #define ast_free_ptr ast_free
 
+#if !defined(STANDALONE)
 #define MALLOC_FAILURE_MSG \
 	ast_log_safe(LOG_ERROR, "Memory Allocation Failure in function %s at line %d of %s\n", func, lineno, file)
+#else
+#define MALLOC_FAILURE_MSG \
+	ast_log(LOG_ERROR, "Memory Allocation Failure in function %s at line %d of %s\n", func, lineno, file)
+#endif
 
 /*!
  * \brief A wrapper for malloc()




More information about the asterisk-commits mailing list