From patchwork Mon Dec 3 21:42:50 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 203445 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id C90772C007C for ; Tue, 4 Dec 2012 08:42:54 +1100 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1Tfdmv-0007Ge-LE; Mon, 03 Dec 2012 21:42:53 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1Tfdmt-0007GW-FR for fwts-devel@lists.ubuntu.com; Mon, 03 Dec 2012 21:42:51 +0000 Received: from cpc3-craw6-2-0-cust180.croy.cable.virginmedia.com ([77.100.248.181] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Tfdmt-0003wD-9c for fwts-devel@lists.ubuntu.com; Mon, 03 Dec 2012 21:42:51 +0000 From: Colin King To: fwts-devel@lists.ubuntu.com Subject: [PATCH] acpi: acpidump: fix formatting of bit fields Date: Mon, 3 Dec 2012 21:42:50 +0000 Message-Id: <1354570970-22310-1-git-send-email-colin.king@canonical.com> X-Mailer: git-send-email 1.8.0 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: fwts-devel-bounces@lists.ubuntu.com Errors-To: fwts-devel-bounces@lists.ubuntu.com From: Colin Ian King Integer bit fields are being formatted 1 char too narrow which looks ugly. Increase the field width by 1 char to make it align with other fields. Signed-off-by: Colin Ian King Acked-by: Keng-Yu Lin Acked-by: Alex Hung --- src/acpi/acpidump/acpidump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/acpi/acpidump/acpidump.c b/src/acpi/acpidump/acpidump.c index d6b899d..435608c 100644 --- a/src/acpi/acpidump/acpidump.c +++ b/src/acpi/acpidump/acpidump.c @@ -144,7 +144,7 @@ static void acpi_dump_uint(fwts_framework *fw, fwts_acpidump_field *info, void * case 8: if (info->bit_field_nbits) { hexdigits = (3+info->bit_field_nbits) / 4; - fwts_log_info_verbatum(fw, "%56.56s: 0x%*.*" PRIx64, info->label, + fwts_log_info_verbatum(fw, "%57.57s: 0x%*.*" PRIx64, info->label, hexdigits, hexdigits, val); } else fwts_log_info_verbatum(fw, "%s 0x%*.*" PRIx64,