From fc0cdca948f16bcf7590e057878fca1d4ce1ed6e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 13 Dec 2014 16:07:36 +0100 Subject: mds-kbdc: dump call-stack MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-kbdc/call-stack.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/mds-kbdc/call-stack.h') diff --git a/src/mds-kbdc/call-stack.h b/src/mds-kbdc/call-stack.h index aa206b3..3c010cf 100644 --- a/src/mds-kbdc/call-stack.h +++ b/src/mds-kbdc/call-stack.h @@ -24,6 +24,21 @@ +/** + * Add “called from here”-notes + */ +#define DUMP_CALL_STACK \ + fail_if (mds_kbdc_call_stack_dump()) + + + +/** + * Add “called from here”-notes + * + * @return Zero on success, -1 on error + */ +int mds_kbdc_call_stack_dump(void); + /** * Prepare for usage of call-stacks * -- cgit v1.2.3-70-g09d2