]> www.infradead.org Git - users/hch/block.git/commitdiff
pktcdvd: stop using bdevname in pkt_seq_show
authorChristoph Hellwig <hch@lst.de>
Tue, 12 Jul 2022 05:21:59 +0000 (07:21 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 12 Jul 2022 05:22:28 +0000 (07:22 +0200)
Just use the %pg format specifier instead.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/block/pktcdvd.c

index 653d24231483009f92d3a0a6d8f302b03f3ca252..a7016ffce9a4367e4643481992560587fd7ed684 100644 (file)
@@ -2460,11 +2460,9 @@ static int pkt_seq_show(struct seq_file *m, void *p)
 {
        struct pktcdvd_device *pd = m->private;
        char *msg;
-       char bdev_buf[BDEVNAME_SIZE];
        int states[PACKET_NUM_STATES];
 
-       seq_printf(m, "Writer %s mapped to %s:\n", pd->name,
-                  bdevname(pd->bdev, bdev_buf));
+       seq_printf(m, "Writer %s mapped to %pg:\n", pd->name, pd->bdev);
 
        seq_printf(m, "\nSettings:\n");
        seq_printf(m, "\tpacket size:\t\t%dkB\n", pd->settings.size / 2);