summaryrefslogtreecommitdiff
path: root/lib/vsprintf.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-04-20 12:04:26 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2018-04-20 12:04:26 -0400
commitcfec36d75b460843403c9e1392fddedf08288c9f (patch)
treec2680c2627772aead51327fb3b21bf06ee66f72a /lib/vsprintf.c
parent3b7c824e9330a640312fce1b04537c684c1d602c (diff)
parentb22a1fa1b34f17ef3a5cc6007e0705375de3d5dd (diff)
Merge remote-tracking branch 'linux-stable/linux-4.15.y' into bcachefs-buffered-io-2
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 01c3957b2de6..062ac753a101 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.