]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix link error for utils/aelparse.
authorCorey Farrell <git@cfware.com>
Fri, 27 Mar 2015 12:25:05 +0000 (12:25 +0000)
committerCorey Farrell <git@cfware.com>
Fri, 27 Mar 2015 12:25:05 +0000 (12:25 +0000)
Use the standard ast_log instead of ast_log_safe for STANDALONE programs.

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@433549 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/utils.h

index c3e77f6661345aa9dc9e847ed97e47d51fd95302..93f9e7522314b51be5027e903966ba0ab3bdf505 100644 (file)
@@ -494,8 +494,13 @@ long int ast_random(void);
 #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()