summaryrefslogtreecommitdiff
path: root/lib/vsprintf.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2024-04-12 01:01:36 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2024-05-02 17:48:09 -0400
commitb8c873edbf35570b93edfeddad9e85da54defa52 (patch)
treec99904d46715263fbd70d0212e1bd7f5d22ae8fe /lib/vsprintf.c
parent3f9b8fb46e5d20eac314f56747e24e1a4e74539d (diff)
downloadlwn-b8c873edbf35570b93edfeddad9e85da54defa52.tar.gz
lwn-b8c873edbf35570b93edfeddad9e85da54defa52.zip
wrapper for access to ->bd_partno
On the next step it's going to get folded into a field where flags will go. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
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 3f9f1b959ef0..cdd4e2314bfc 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -972,7 +972,7 @@ char *bdev_name(char *buf, char *end, struct block_device *bdev,
*buf = 'p';
buf++;
}
- buf = number(buf, end, bdev->bd_partno, spec);
+ buf = number(buf, end, bdev_partno(bdev), spec);
}
return buf;
}