From f416cb91a84b59704a43ddb6383c5e1a2f9ebf75 Mon Sep 17 00:00:00 2001
From: Quanah Gibson-Mount <quanah@openldap.org>
Date: Fri, 16 Apr 2010 20:08:16 +0000
Subject: [PATCH] Gentler message when falling back to ch_malloc

---
 servers/slapd/sl_malloc.c | 2 +-
 servers/slapd/zn_malloc.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/servers/slapd/sl_malloc.c b/servers/slapd/sl_malloc.c
index 93cbfe5435..a295483068 100644
--- a/servers/slapd/sl_malloc.c
+++ b/servers/slapd/sl_malloc.c
@@ -366,7 +366,7 @@ slap_sl_malloc(
 			}
 		} else {
 			Debug( LDAP_DEBUG_TRACE,
-				"slap_sl_malloc of %lu bytes failed, using ch_malloc\n",
+				"slap_sl_malloc of %lu bytes, falling back to ch_malloc\n",
 				(long)size, 0, 0);
 			return (void*)ch_malloc(size);
 		}
diff --git a/servers/slapd/zn_malloc.c b/servers/slapd/zn_malloc.c
index e569fcac25..54f92e3441 100644
--- a/servers/slapd/zn_malloc.c
+++ b/servers/slapd/zn_malloc.c
@@ -329,7 +329,7 @@ retry:
 		if ( zh->zh_maxzones < zh->zh_numzones + zh->zh_deltazones ) {
 			ldap_pvt_thread_mutex_unlock( &zh->zh_mutex );
 			Debug( LDAP_DEBUG_TRACE,
-				"slap_zn_malloc of %lu bytes failed, using ch_malloc\n",
+				"slap_zn_malloc of %lu bytes, falling back to ch_malloc\n",
 				(long)size, 0, 0);
 			Debug(LDAP_DEBUG_NONE,
 				"slap_zn_malloc: returning 0x%x, 0x%x\n",
-- 
GitLab