From patchwork Wed Feb 3 20:46:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Rae X-Patchwork-Id: 61151 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp79055lbl; Wed, 3 Feb 2016 12:53:33 -0800 (PST) X-Received: by 10.112.55.72 with SMTP id q8mr1869985lbp.8.1454532813304; Wed, 03 Feb 2016 12:53:33 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id sx6si5174921lbb.190.2016.02.03.12.53.32; Wed, 03 Feb 2016 12:53:33 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3A22FA7526; Wed, 3 Feb 2016 21:53:32 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t76pzSt8vc70; Wed, 3 Feb 2016 21:53:32 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BCAD7A74D6; Wed, 3 Feb 2016 21:53:31 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1F9B3A74FB for ; Wed, 3 Feb 2016 21:53:26 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YyNBmcIlLzNZ for ; Wed, 3 Feb 2016 21:53:26 +0100 (CET) X-Greylist: delayed 421 seconds by postgrey-1.34 at theia; Wed, 03 Feb 2016 21:53:11 CET X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-irv-18.localdomain (5520-maca-inet1-outside.broadcom.com [216.31.211.11]) by theia.denx.de (Postfix) with ESMTP id 7E331A74D6 for ; Wed, 3 Feb 2016 21:53:10 +0100 (CET) Received: from mail-irva-13.broadcom.com (mail-irva-13.broadcom.com [10.11.16.103]) by mail-irv-18.localdomain (Postfix) with ESMTP id 87CF58205F; Wed, 3 Feb 2016 12:46:08 -0800 (PST) Received: from VM-host64-64-A1.ric.broadcom.com (unknown [10.136.4.105]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 1CC9140FE6; Wed, 3 Feb 2016 12:46:06 -0800 (PST) From: Steve Rae To: u-boot@lists.denx.de Date: Wed, 3 Feb 2016 12:46:02 -0800 Message-Id: <1454532362-31109-2-git-send-email-srae@broadcom.com> X-Mailer: git-send-email 1.8.5 In-Reply-To: <1454532362-31109-1-git-send-email-srae@broadcom.com> References: <1454532362-31109-1-git-send-email-srae@broadcom.com> Cc: Steve Rae Subject: [U-Boot] [PATCH 2/2] fastboot: sparse: remove unnecessary logging X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" remove logging of the 'skipped' blocks Signed-off-by: Steve Rae --- common/image-sparse.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) -- 1.8.5 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot diff --git a/common/image-sparse.c b/common/image-sparse.c index f02aee4..594bf4e 100644 --- a/common/image-sparse.c +++ b/common/image-sparse.c @@ -275,7 +275,6 @@ int store_sparse_image(sparse_storage_t *storage, void *storage_priv, sparse_buffer_t *buffer; uint32_t start; uint32_t total_blocks = 0; - uint32_t skipped = 0; int i; debug("=== Storage ===\n"); @@ -334,7 +333,6 @@ int store_sparse_image(sparse_storage_t *storage, void *storage_priv, storage, sparse_header); total_blocks += blkcnt; - skipped += blkcnt; continue; } @@ -375,8 +373,8 @@ int store_sparse_image(sparse_storage_t *storage, void *storage_priv, sparse_put_data_buffer(buffer); } - debug("Wrote %d blocks, skipped %d, expected to write %d blocks\n", - total_blocks, skipped, + debug("Wrote %d blocks, expected to write %d blocks\n", + total_blocks, sparse_block_size_to_storage(sparse_header->total_blks, storage, sparse_header)); printf("........ wrote %d blocks to '%s'\n", total_blocks,