summaryrefslogtreecommitdiffstats
path: root/runtime/sym.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/sym.c')
-rw-r--r--runtime/sym.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/sym.c b/runtime/sym.c
index 107f6b33..344df373 100644
--- a/runtime/sym.c
+++ b/runtime/sym.c
@@ -18,6 +18,7 @@
String _stp_symbol_sprint (String str, unsigned long address)
{
+#ifdef HAS_LOOKUP
char *modname;
const char *name;
unsigned long offset, size;
@@ -33,7 +34,9 @@ String _stp_symbol_sprint (String str, unsigned long address)
else
_stp_sprintf (str, " : %s+%#lx/%#lx", name, offset, size);
}
-
+#else
+ _stp_sprintf (str, "0x%lx", address);
+#endif
return str;
}