[PATCH] xfuncs: remove debugging output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux