From nobody Fri May 3 12:10:14 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1500538538097404.6640251173161; Thu, 20 Jul 2017 01:15:38 -0700 (PDT) Received: from localhost ([::1]:36630 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dY6cR-00045s-VE for importer@patchew.org; Thu, 20 Jul 2017 04:15:35 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dY6bi-0003jM-5L for qemu-devel@nongnu.org; Thu, 20 Jul 2017 04:14:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dY6bh-0006QM-3B for qemu-devel@nongnu.org; Thu, 20 Jul 2017 04:14:50 -0400 Received: from manul.sfritsch.de ([2a01:4f8:172:195f:112::2]:36903) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dY6bg-0006PZ-S9 for qemu-devel@nongnu.org; Thu, 20 Jul 2017 04:14:49 -0400 From: Stefan Fritsch To: qemu-trivial@nongnu.org Date: Thu, 20 Jul 2017 10:14:46 +0200 Message-Id: <1500538486-23453-1-git-send-email-sf@sfritsch.de> X-Mailer: git-send-email 2.1.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:4f8:172:195f:112::2 Subject: [Qemu-devel] [PATCH] vmxcap: Fix output formatting X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stefan Fritsch , "open list:All patches CC here" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Stefan Fritsch One string is longer than 40 chars. Set the field width to 50. Signed-off-by: Stefan Fritsch --- scripts/kvm/vmxcap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/kvm/vmxcap b/scripts/kvm/vmxcap index d9a6db0bb7..19506f45bf 100755 --- a/scripts/kvm/vmxcap +++ b/scripts/kvm/vmxcap @@ -69,7 +69,7 @@ class Control(object): s =3D 'forced' elif one and zero: s =3D 'yes' - print(' %-40s %s' % (self.bits[bit], s)) + print(' %-50s %s' % (self.bits[bit], s)) =20 class Misc(object): def __init__(self, name, bits, msr): @@ -94,7 +94,7 @@ class Misc(object): def fmt(x): return { True: 'yes', False: 'no' }[x] v =3D (value >> lo) & ((1 << (hi - lo + 1)) - 1) - print(' %-40s %s' % (self.bits[bits], fmt(v))) + print(' %-50s %s' % (self.bits[bits], fmt(v))) =20 controls =3D [ Misc( --=20 2.11.0