diff options
-rw-r--r-- | lib/vsprintf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 3b777025d876..98d632277ca8 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c | |||
@@ -661,6 +661,9 @@ static char *ip4_addr_string(char *buf, char *end, u8 *addr, int field_width, | |||
661 | */ | 661 | */ |
662 | static char *pointer(const char *fmt, char *buf, char *end, void *ptr, int field_width, int precision, int flags) | 662 | static char *pointer(const char *fmt, char *buf, char *end, void *ptr, int field_width, int precision, int flags) |
663 | { | 663 | { |
664 | if (!ptr) | ||
665 | return string(buf, end, "(null)", field_width, precision, flags); | ||
666 | |||
664 | switch (*fmt) { | 667 | switch (*fmt) { |
665 | case 'F': | 668 | case 'F': |
666 | ptr = dereference_function_descriptor(ptr); | 669 | ptr = dereference_function_descriptor(ptr); |