From patchwork Thu Feb 24 22:47:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 12759389 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6E039C433EF for ; Thu, 24 Feb 2022 22:48:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F329310E8FB; Thu, 24 Feb 2022 22:48:55 +0000 (UTC) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by gabe.freedesktop.org (Postfix) with ESMTPS id 06E9E10E8D0 for ; Thu, 24 Feb 2022 22:48:25 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 88EAC61B76; Thu, 24 Feb 2022 22:48:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B98C7C340F1; Thu, 24 Feb 2022 22:48:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645742903; bh=qiPu/cmEB3VAfD2B0aKsftGZDjA2Hqpgf7zw+lXiG/w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BkD81WX3M48w9bkUGsHxF7strCg/nysIofwqbX1L4AQqZj1mOfg/H5ezLyejvZWy9 AGRzL4yDZGa4rrezq6/rGbuEPSeaBTu26BNE1kD1fwnvu5jV6xVofBMQZxZNwmB7pk ak1gElQY6/AzSjtOQc/WQRW3UwDhLY6rRD7Q2ZBoSzjKjh8Wd5T3ExYmfYqVYkPltu 36TVAIgW3th49PK37/UpWTsCYAp0XSQY4hMou1VyHGP9kq/Lso+drzZNd5CbARnEDt CZegw//sqThfPlkDx1a+Nq3R5IfyBMWqZCcof1n15vDc6dSP75sEdIjpBEuMd2s6ey F1pV7KRedHM8A== From: Bjorn Helgaas To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann Subject: [PATCH v9 10/11] PCI/VGA: Use unsigned format string to print lock counts Date: Thu, 24 Feb 2022 16:47:52 -0600 Message-Id: <20220224224753.297579-11-helgaas@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220224224753.297579-1-helgaas@kernel.org> References: <20220224224753.297579-1-helgaas@kernel.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Bjorn Helgaas , Xuefeng Li , Huacai Chen Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Bjorn Helgaas In struct vga_device, io_lock_cnt and mem_lock_cnt are unsigned, but we previously printed them with "%d", the signed decimal format. Print them with the unsigned format "%u" instead. Signed-off-by: Bjorn Helgaas --- drivers/pci/vgaarb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/vgaarb.c b/drivers/pci/vgaarb.c index 7b1bfdea9d10..d6e77c6a9a1a 100644 --- a/drivers/pci/vgaarb.c +++ b/drivers/pci/vgaarb.c @@ -1156,7 +1156,7 @@ static ssize_t vga_arb_read(struct file *file, char __user *buf, /* Fill the buffer with infos */ len = snprintf(lbuf, 1024, - "count:%d,PCI:%s,decodes=%s,owns=%s,locks=%s(%d:%d)\n", + "count:%d,PCI:%s,decodes=%s,owns=%s,locks=%s(%u:%u)\n", vga_decode_count, pci_name(pdev), vga_iostate_to_str(vgadev->decodes), vga_iostate_to_str(vgadev->owns),