Skip to contentSkip to conversation

mem: remove unneeded log

PATCH In review Thomas Monjalon 1 participant 2 messages Jul 26, 2013 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mem: remove unneeded log

From: Olivier Matz <[email protected]>

Remove an error log in memzone_reserve_aligned_thread_unsafe(). It is up to the caller to log the error, and this is already done in DPDK code (especially in network drivers).

---
 lib/librte_eal/common/eal_common_memzone.c |    3 ---
 1 file changed, 3 deletions(-)
lib/librte_eal/common/eal_common_memzone.c +0 -3
index 5532f0d..cd60054 100644
@@ -198,9 +198,6 @@ memzone_reserve_aligned_thread_unsafe(const char *name, uint64_t len,
 			return memzone_reserve_aligned_thread_unsafe(name, len - align,
 					socket_id, 0, align);
 
-		RTE_LOG(ERR, EAL, "%s(%s, %" PRIu64 ", %d): "
-			"No appropriate segment found\n",
-			__func__, name, requested_len, socket_id);
 		rte_errno = ENOMEM;
 		return NULL;
 	}
Signature · 1 line
1.7.10.4

A message that is not in the archive (sent off-list or not yet received): 1374850483-9104-1-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org

#2 lore raw

26/07/2013 16:54, Thomas Monjalon :

Quoted 20 lines

From: Olivier Matz <[email protected]>

Remove an error log in memzone_reserve_aligned_thread_unsafe(). It is up to the caller to log the error, and this is already done in DPDK code (especially in network drivers).

---
 lib/librte_eal/common/eal_common_memzone.c |    3 ---
 1 file changed, 3 deletions(-)
(quoted diff) +0 -0

b/lib/librte_eal/common/eal_common_memzone.c index 5532f0d..cd60054 100644

lib/librte_eal/common/eal_common_memzone.c +0 -0
@@ -198,9 +198,6 @@ memzone_reserve_aligned_thread_unsafe(const char *name,

uint64_t len, return memzone_reserve_aligned_thread_unsafe(name, len - align, socket_id, 0, align);

lib/librte_eal/common/eal_common_memzone.c memzone_reserve_aligned_thread_unsafe(const char *name, uint64_t len, · line 203

Quoted 6 lines
lib/librte_eal/common/eal_common_memzone.c +0 -3
-		RTE_LOG(ERR, EAL, "%s(%s, %" PRIu64 ", %d): "
-			"No appropriate segment found\n",
-			__func__, name, requested_len, socket_id);
 		rte_errno = ENOMEM;
 		return NULL;
 	}

pushed

Signature · 1 line
Thomas