Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp373225imw; Tue, 12 Jul 2022 22:58:48 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vaqPi9CuR0p8MFYNI4jSibFRenfXfLeUaUspZORRK3/nESKJPAk/AKPmw1wV4hFef5qxgl X-Received: by 2002:a63:eb07:0:b0:411:9e27:a481 with SMTP id t7-20020a63eb07000000b004119e27a481mr1621008pgh.157.1657691928639; Tue, 12 Jul 2022 22:58:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657691928; cv=none; d=google.com; s=arc-20160816; b=vWw+dIzVUv1BDV/JYDPhDJwEPU7TurYiVK6tizOpaJo1W+rs4RkysWirilFTd8cguG t9QUq6LDufiDHswx2aoolBrI5IdrYevzzXcWgag2lQU4Hiy5xDhuFWHti77igTfDzJA/ cKBTdMp7g1YHJgqMkm0zsNqA3f/B6H7KQ8uwyjdqmuYcfR0MBvL+SAdsnmc7Iz12cMJR eoAOJbUre+tx7AOdWPgdnl8JvNf9F4rwkxn4oJ1wAcaLhLJJP7ykMDN853IZWnhSa0Pq io8YLikF6Tr1M/iFPiHsqUrC01rDO8Wbp4eyV0PZgl4yzRVrR46PZA+n4GqE46EwlfZl eu0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oVF8muBFUtxIxMWHnxdNoSfRx8q8DedDPDTnq4wy7CA=; b=KqBqA3Puju1vpkNxUi6LuArabMBpmS+OflWHTYK2zQrbMF2n9xU1VdmlImrxmfXVi+ IJ4mef5jCcLiJGSQ7OUbxso/TXsZBNdV9p7fQuV2kmruDQMxzhLQJxTYXRRdbZ9ecGjK u5V0gDFBT+xSzRMjn8nDDbwdPcANoKIHuP2ATOlvgOCINI65pEuURx1EN4gbYLF8deK+ VaPszcDpA5yYpgPQMWzP7cldFhxy0x92/rdSOrkT2olrwjH7uCrPWnQ+k20NmohyXi0L DKm1SWZ9iZqzvZNuPsnsp0g2WWSpHt3b1dCNQHVnbee9E2iAAuHbGIr8XievDYcd9/9Q HGHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=MdHLRRAg; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c5-20020a170902d48500b0016c0ad2bff3si18938742plg.451.2022.07.12.22.58.36; Tue, 12 Jul 2022 22:58:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=MdHLRRAg; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233790AbiGMFx4 (ORCPT + 99 others); Wed, 13 Jul 2022 01:53:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231465AbiGMFxn (ORCPT ); Wed, 13 Jul 2022 01:53:43 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50DE5E083; Tue, 12 Jul 2022 22:53:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=oVF8muBFUtxIxMWHnxdNoSfRx8q8DedDPDTnq4wy7CA=; b=MdHLRRAgbOCH6r9SSIyh7sgJY5 T1Gfr+3Gk0ySNEQiUYRfL3WBQhq6b31TOb9e9r39b90ECAT0QBlJKrsFL/omMn+LQXbfMfT4ZL8/H V65/qxfGC1sfiJndzayottsrq2w/DI4ZOHR3UjTWv7gEHh7+ZSqVe7TytGhqbRaStUZC9ZYlALqx7 lVXL8jVVEqleTBzMql1idapQKcnqGoRwgDKZI+aV1ztO2bJXl/4I28HNmt9JW1JAUcheWocyYstB/ nz6ClRZuxPpErxcz3ntiP4NR0F+596gfewyQFWirqW7bk5tF4k37QcqwhAWli8lJB4A4ksPftKtko WsPXawgA==; Received: from ip4d15c27d.dynamic.kabel-deutschland.de ([77.21.194.125] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oBVJW-000NT2-I1; Wed, 13 Jul 2022 05:53:35 +0000 From: Christoph Hellwig To: Jens Axboe Cc: =?UTF-8?q?Christoph=20B=C3=B6hmwalder?= , "Md. Haris Iqbal" , Jack Wang , Song Liu , "Theodore Ts'o" , Andreas Dilger , Jan Kara , Mark Fasheh , Joel Becker , Joseph Qi , linux-block@vger.kernel.org, drbd-dev@lists.linbit.com, linux-raid@vger.kernel.org, linux-ext4@vger.kernel.org, ocfs2-devel@oss.oracle.com Subject: [PATCH 5/9] pktcdvd: stop using bdevname in pkt_new_dev Date: Wed, 13 Jul 2022 07:53:13 +0200 Message-Id: <20220713055317.1888500-6-hch@lst.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220713055317.1888500-1-hch@lst.de> References: <20220713055317.1888500-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Just use the %pg format specifier instead. Signed-off-by: Christoph Hellwig --- drivers/block/pktcdvd.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c index a7016ffce9a43..01a15dbd9cde2 100644 --- a/drivers/block/pktcdvd.c +++ b/drivers/block/pktcdvd.c @@ -2519,7 +2519,6 @@ static int pkt_seq_show(struct seq_file *m, void *p) static int pkt_new_dev(struct pktcdvd_device *pd, dev_t dev) { int i; - char b[BDEVNAME_SIZE]; struct block_device *bdev; struct scsi_device *sdev; @@ -2532,8 +2531,7 @@ static int pkt_new_dev(struct pktcdvd_device *pd, dev_t dev) if (!pd2) continue; if (pd2->bdev->bd_dev == dev) { - pkt_err(pd, "%s already setup\n", - bdevname(pd2->bdev, b)); + pkt_err(pd, "%pg already setup\n", pd2->bdev); return -EBUSY; } if (pd2->pkt_dev == dev) { @@ -2568,7 +2566,7 @@ static int pkt_new_dev(struct pktcdvd_device *pd, dev_t dev) } proc_create_single_data(pd->name, 0, pkt_proc, pkt_seq_show, pd); - pkt_dbg(1, pd, "writer mapped to %s\n", bdevname(bdev, b)); + pkt_dbg(1, pd, "writer mapped to %pg\n", bdev); return 0; out_mem: -- 2.30.2