summaryrefslogtreecommitdiff
path: root/tools/lib/lockdep/uinclude/linux/kallsyms.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib/lockdep/uinclude/linux/kallsyms.h')
-rw-r--r--tools/lib/lockdep/uinclude/linux/kallsyms.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/lib/lockdep/uinclude/linux/kallsyms.h b/tools/lib/lockdep/uinclude/linux/kallsyms.h
index b0f2dbdf1a15..582cc1e5f3a4 100644
--- a/tools/lib/lockdep/uinclude/linux/kallsyms.h
+++ b/tools/lib/lockdep/uinclude/linux/kallsyms.h
@@ -3,6 +3,7 @@
#include <linux/kernel.h>
#include <stdio.h>
+#include <unistd.h>
#define KSYM_NAME_LEN 128
@@ -24,7 +25,7 @@ static inline void print_ip_sym(unsigned long ip)
name = backtrace_symbols((void **)&ip, 1);
- printf("%s\n", *name);
+ dprintf(STDOUT_FILENO, "%s\n", *name);
free(name);
}