diff options
-rw-r--r-- | firmware/common/format.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/common/format.c b/firmware/common/format.c index afe1010cfb..60c50ccd89 100644 --- a/firmware/common/format.c +++ b/firmware/common/format.c | |||
@@ -111,7 +111,12 @@ void format( | |||
111 | } | 111 | } |
112 | while (uval > 0); | 112 | while (uval > 0); |
113 | break; | 113 | break; |
114 | 114 | case 'p': | |
115 | case 'P': | ||
116 | /* for pointers prepend 0x and act like 'X' */ | ||
117 | push(userp, '0'); | ||
118 | push(userp, 'x'); | ||
119 | /* fall through */ | ||
115 | case 'x': | 120 | case 'x': |
116 | case 'X': | 121 | case 'X': |
117 | pad='0'; | 122 | pad='0'; |