Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp373797imw; Tue, 12 Jul 2022 22:59:34 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sXxSxCsHJ29MTNJDfNvxRCDvq0ufz0bLAu/T7/xfr69sGq81uOi9lwMCf4wXq/S6x3OmYz X-Received: by 2002:a17:902:eb8e:b0:16c:5764:7dc0 with SMTP id q14-20020a170902eb8e00b0016c57647dc0mr1643598plg.63.1657691974421; Tue, 12 Jul 2022 22:59:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657691974; cv=none; d=google.com; s=arc-20160816; b=aMIUenGDzAsgpVYg6iJVsmowzdZQmeaNm3lglpZmEB5uK5kl2ElQVdwfkppSPOlQjg ZXnl2rSyJ+m1xDB4uaMs2pHeUaWYRHa6npG2rV1LH5qdF0Ia//RFrVu4/FvudxfjzLZL FnVz4iHvFmm4Ixojp3c5yG456xNTPUEyFdBwlJtV3Q2BKQQexp23maImDCpxXKRLR5Eu Qc1RNClQIJMUM72PplLn3j4961MSnZMBYIVKOWO7O8d/eFs73Oq8OKCqJtmRR1EkCMYk n5nonqplpf0kolTQHWYyF3kXnXesCu3rDN6s8DcgdkZAdGQ71vpaE07vVbmTVhjEbg2D MOrQ== 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=8YLN5GyijiVg1xTPNRS23c3gn76G2WVZ1KXJAfwp4Qo=; b=uxTMkFlYlFIM/nGU4IWPTMVpTCrKmDs3B+4UhWCKOlSnUibSw5N/hsCQwgYdieNbp5 8DfjRT5zugCkyAeuqNXMyoBJQMHkiIqcQ76Kz+aicIHtdhgFwUuBmq2VDtL6x7MY4k/8 V/y3hNyfaaAcI2qAn1mA/JQnk/rVepXnIcS3GmDLS8qWDLT/mckXUcx/NPuKPF8ytjLb Dz2u+L8Q5FmLBHOFFTGaSKtgBy2FRU0jsIm95WlwFaw+RPBz4THouqCMS5cabLrBgDxZ B01upbPAAy4J6PNTlv5nQcDACglVxcWOe++5UHU5OlmYowbRTeg29ARhgpbFoBfrC8s3 YcXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Ou3+wvbN; 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 r26-20020a638f5a000000b00415abc3c2c6si17529336pgn.521.2022.07.12.22.59.21; Tue, 12 Jul 2022 22:59:34 -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=Ou3+wvbN; 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 S234268AbiGMFxv (ORCPT + 99 others); Wed, 13 Jul 2022 01:53:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234186AbiGMFxl (ORCPT ); Wed, 13 Jul 2022 01:53:41 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCDCC5587; Tue, 12 Jul 2022 22:53:39 -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=8YLN5GyijiVg1xTPNRS23c3gn76G2WVZ1KXJAfwp4Qo=; b=Ou3+wvbNsv98hQqKd4y7/c19rt xdHI8z47Si0TC49QMc0agJf1vT2jU2957dZe04c+E5LEYTE9hZn43J4bU1sgRBp+Yru61IHNToAgP wNlhnxrlwpxieWN9K7b1b/b3ggsLDPF5AGRyQdH19Yuty5r8srGsCVtZppYULVTujwJknrm4094Zc +LMIObRqzZIe2vFGhZ9gfmYiS3+HYlITQnotYk7yvb8MkhqPGd5cH+9n0EU5VXuEv/ChqLKrD/4zB lFkp5Fx8F9J7vhdPljqggq2dboCOI2gUoklE1cu2z93wEWY6Zsskwph6aZYgfx7pK2XQG3JGCE2Ua OKJTANDg==; 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 1oBVJT-000NS0-J3; Wed, 13 Jul 2022 05:53:32 +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 4/9] pktcdvd: stop using bdevname in pkt_seq_show Date: Wed, 13 Jul 2022 07:53:12 +0200 Message-Id: <20220713055317.1888500-5-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 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c index 653d242314830..a7016ffce9a43 100644 --- a/drivers/block/pktcdvd.c +++ b/drivers/block/pktcdvd.c @@ -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); -- 2.30.2