summaryrefslogtreecommitdiff
path: root/lib/vsprintf.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2018-03-20 10:01:37 +0100
committerIngo Molnar <mingo@kernel.org>2018-03-20 10:01:37 +0100
commit3eb93ea3272d428aab3c03e2dd272a78a7729ba8 (patch)
tree63ca8b7e7feccb109f4b5cb868939da395c7632f /lib/vsprintf.c
parent5927145efd5de71976e62e2822511b13014d7e56 (diff)
parent565977a3d929fc4427769117a8ac976ec16776d5 (diff)
Merge branch 'x86/mm' into x86/dma, to pick up dependencies
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'lib/vsprintf.c')
-rw-r--r--lib/vsprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index 77ee6ced11b1..d7a708f82559 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -1849,7 +1849,7 @@ char *pointer(const char *fmt, char *buf, char *end, void *ptr,
{
const int default_width = 2 * sizeof(void *);
- if (!ptr && *fmt != 'K') {
+ if (!ptr && *fmt != 'K' && *fmt != 'x') {
/*
* Print (null) with the same width as a pointer so it makes
* tabular output look nice.