summaryrefslogtreecommitdiff
path: root/firmware/common/format.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common/format.c')
-rw-r--r--firmware/common/format.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/common/format.c b/firmware/common/format.c
index afe1010..60c50cc 100644
--- a/firmware/common/format.c
+++ b/firmware/common/format.c
@@ -111,7 +111,12 @@ void format(
}
while (uval > 0);
break;
-
+ case 'p':
+ case 'P':
+ /* for pointers prepend 0x and act like 'X' */
+ push(userp, '0');
+ push(userp, 'x');
+ /* fall through */
case 'x':
case 'X':
pad='0';