summaryrefslogtreecommitdiffstats
path: root/include/tlsf.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/tlsf.h')
-rw-r--r--include/tlsf.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/tlsf.h b/include/tlsf.h
index 7015de0eb5..3fa2203715 100644
--- a/include/tlsf.h
+++ b/include/tlsf.h
@@ -11,10 +11,10 @@
**
** This implementation was written to the specification
** of the document, therefore no GPL restrictions apply.
-**
+**
** Copyright (c) 2006-2016, Matthew Conte
** All rights reserved.
-**
+**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are met:
** * Redistributions of source code must retain the above copyright
@@ -25,7 +25,7 @@
** * Neither the name of the copyright holder nor the
** names of its contributors may be used to endorse or promote products
** derived from this software without specific prior written permission.
-**
+**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
@@ -42,9 +42,12 @@
extern "C" {
#endif
+#include <printk.h>
+
#define tlsf_assert(expr) do { \
if (unlikely(!(expr))) { \
printf(#expr "%s %d\n", __FILE__, __LINE__); \
+ dump_stack(); \
} \
} while (0)