From patchwork Thu Nov 27 12:02:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 415469 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id D5D4D140283; Thu, 27 Nov 2014 23:03:33 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1XtxnI-00023M-Pz; Thu, 27 Nov 2014 12:03:32 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1XtxnC-00022s-GH for fwts-devel@lists.ubuntu.com; Thu, 27 Nov 2014 12:03:26 +0000 Received: from cpc3-craw6-2-0-cust180.croy.cable.virginm.net ([77.100.248.181] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1XtxnC-0002qG-DW for fwts-devel@lists.ubuntu.com; Thu, 27 Nov 2014 12:03:26 +0000 From: Colin King To: fwts-devel@lists.ubuntu.com Subject: [PATCH] cmos: just print drives + 1 with %d, fixes clang warning Date: Thu, 27 Nov 2014 12:02:58 +0000 Message-Id: <1417089778-8970-1-git-send-email-colin.king@canonical.com> X-Mailer: git-send-email 2.1.3 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.14 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: fwts-devel-bounces@lists.ubuntu.com From: Colin Ian King Signed-off-by: Colin Ian King Acked-by: Alex Hung Acked-by: Ivan Hu --- src/cmos/cmosdump/cmosdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmos/cmosdump/cmosdump.c b/src/cmos/cmosdump/cmosdump.c index aff0373..1ab86d3 100644 --- a/src/cmos/cmosdump/cmosdump.c +++ b/src/cmos/cmosdump/cmosdump.c @@ -265,7 +265,7 @@ static int cmosdump_test1(fwts_framework *fw) primary_display[(data[20] >> 4) & 3]); if (data[20] & 1) { int drives = (data[20] >> 6) & 3; - fwts_log_info_verbatum(fw, " Floppy Drives: 0x%2.2x (%hhu drive%s)", + fwts_log_info_verbatum(fw, " Floppy Drives: 0x%2.2x (%d drive%s)", drives, drives + 1, drives > 0 ? "s" : ""); } else { fwts_log_info_verbatum(fw, " Floppy Drives: None.");