From patchwork Tue Feb 9 19:19:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Rae X-Patchwork-Id: 61592 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp2228770lbl; Tue, 9 Feb 2016 11:19:50 -0800 (PST) X-Received: by 10.194.133.10 with SMTP id oy10mr34009155wjb.93.1455045590914; Tue, 09 Feb 2016 11:19:50 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id 195si25086374wmy.4.2016.02.09.11.19.50; Tue, 09 Feb 2016 11:19:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for 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: best guess record for 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 B26DCA7508; Tue, 9 Feb 2016 20:19:46 +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 cNcCFcHRf2ZM; Tue, 9 Feb 2016 20:19:46 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CF3CCA7526; Tue, 9 Feb 2016 20:19:42 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2762BA74D5 for ; Tue, 9 Feb 2016 20:19:39 +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 6D9XhSe4qzSe for ; Tue, 9 Feb 2016 20:19:39 +0100 (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.broadcom.com (5520-maca-inet1-outside.broadcom.com [216.31.211.11]) by theia.denx.de (Postfix) with ESMTP id CC323A74A8 for ; Tue, 9 Feb 2016 20:19:36 +0100 (CET) Received: from mail-irva-13.broadcom.com (mail-irva-13.broadcom.com [10.11.16.103]) by mail-irv-18.broadcom.com (Postfix) with ESMTP id 7B6DB8203F; Tue, 9 Feb 2016 11:19:35 -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 D4C3641009; Tue, 9 Feb 2016 11:19:28 -0800 (PST) From: Steve Rae To: u-boot@lists.denx.de Date: Tue, 9 Feb 2016 11:19:11 -0800 Message-Id: <1455045551-12971-2-git-send-email-srae@broadcom.com> X-Mailer: git-send-email 1.8.5 In-Reply-To: <1455045551-12971-1-git-send-email-srae@broadcom.com> References: <1455045551-12971-1-git-send-email-srae@broadcom.com> Cc: Steve Rae Subject: [U-Boot] [PATCH v2 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 --- Changes in v2: None 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 ef0d232..737e8ea 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"); @@ -336,7 +335,6 @@ int store_sparse_image(sparse_storage_t *storage, void *storage_priv, #ifdef CONFIG_FASTBOOT_FLASH_MMC_DEV total_blocks += blkcnt; #endif - skipped += blkcnt; continue; } @@ -377,8 +375,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,