mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] xfuncs: remove debugging output
@ 2015-05-13  6:23 Sascha Hauer
  0 siblings, 0 replies; only message in thread
From: Sascha Hauer @ 2015-05-13  6:23 UTC (permalink / raw)
  To: Barebox List

Adding debug statements to this code path does not make much sense
since when enabled it will massively spam the console.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 lib/xfuncs.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/lib/xfuncs.c b/lib/xfuncs.c
index 86d0013..0e78b67 100644
--- a/lib/xfuncs.c
+++ b/lib/xfuncs.c
@@ -30,8 +30,6 @@ void *xmalloc(size_t size)
 	if (!(p = malloc(size)))
 		panic("ERROR: out of memory\n");
 
-	debug("xmalloc %p (size %zu)\n", p, size);
-
 	return p;
 }
 EXPORT_SYMBOL(xmalloc);
@@ -43,8 +41,6 @@ void *xrealloc(void *ptr, size_t size)
 	if (!(p = realloc(ptr, size)))
 		panic("ERROR: out of memory\n");
 
-	debug("xrealloc %p -> %p (size %zu)\n", ptr, p, size);
-
 	return p;
 }
 EXPORT_SYMBOL(xrealloc);
-- 
2.1.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-05-13  6:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-13  6:23 [PATCH] xfuncs: remove debugging output Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox