From patchwork Thu Sep 23 11:51:36 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Hunter X-Patchwork-Id: 201732 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8NBpqfa030632 for ; Thu, 23 Sep 2010 11:51:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754663Ab0IWLvu (ORCPT ); Thu, 23 Sep 2010 07:51:50 -0400 Received: from smtp.nokia.com ([192.100.122.233]:46532 "EHLO mgw-mx06.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754652Ab0IWLvu (ORCPT ); Thu, 23 Sep 2010 07:51:50 -0400 Received: from vaebh106.NOE.Nokia.com (vaebh106.europe.nokia.com [10.160.244.32]) by mgw-mx06.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o8NBpfjT015508; Thu, 23 Sep 2010 14:51:45 +0300 Received: from esebh102.NOE.Nokia.com ([172.21.138.183]) by vaebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 23 Sep 2010 14:51:43 +0300 Received: from mgw-da02.ext.nokia.com ([147.243.128.26]) by esebh102.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Thu, 23 Sep 2010 14:51:42 +0300 Received: from ahunter-work.research.nokia.com (esdhcp034137.research.nokia.com [172.21.34.137]) by mgw-da02.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o8NBpbFi000710; Thu, 23 Sep 2010 14:51:37 +0300 From: Adrian Hunter To: Chris Ball Cc: linux-mmc Mailing List , Adrian Hunter Date: Thu, 23 Sep 2010 14:51:36 +0300 Message-Id: <20100923115136.18000.69228.sendpatchset@ahunter-work.research.nokia.com> In-Reply-To: <20100923115122.18000.46750.sendpatchset@ahunter-work.research.nokia.com> References: <20100923115122.18000.46750.sendpatchset@ahunter-work.research.nokia.com> Subject: [PATCH 2/2] mmc_test: fix display of .5 KiB X-OriginalArrivalTime: 23 Sep 2010 11:51:42.0885 (UTC) FILETIME=[B0CCE550:01CB5B15] X-Nokia-AV: Clean Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Thu, 23 Sep 2010 11:51:52 +0000 (UTC) diff --git a/drivers/mmc/card/mmc_test.c b/drivers/mmc/card/mmc_test.c index 5874040..c38a3a8 100644 --- a/drivers/mmc/card/mmc_test.c +++ b/drivers/mmc/card/mmc_test.c @@ -539,7 +539,7 @@ static void mmc_test_print_rate(struct mmc_test_card *test, uint64_t bytes, printk(KERN_INFO "%s: Transfer of %u sectors (%u%s KiB) took %lu.%09lu " "seconds (%u kB/s, %u KiB/s)\n", mmc_hostname(test->card->host), sectors, sectors >> 1, - (sectors == 1 ? ".5" : ""), (unsigned long)ts.tv_sec, + (sectors & 1 ? ".5" : ""), (unsigned long)ts.tv_sec, (unsigned long)ts.tv_nsec, rate / 1000, rate / 1024); mmc_test_save_transfer_result(test, 1, sectors, ts, rate); @@ -563,7 +563,7 @@ static void mmc_test_print_avg_rate(struct mmc_test_card *test, uint64_t bytes, printk(KERN_INFO "%s: Transfer of %u x %u sectors (%u x %u%s KiB) took " "%lu.%09lu seconds (%u kB/s, %u KiB/s)\n", mmc_hostname(test->card->host), count, sectors, count, - sectors >> 1, (sectors == 1 ? ".5" : ""), + sectors >> 1, (sectors & 1 ? ".5" : ""), (unsigned long)ts.tv_sec, (unsigned long)ts.tv_nsec, rate / 1000, rate / 1024);