Message ID | 1429800722-25721-2-git-send-email-zhangfei.gao@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBD2NHEOP24LRBQMO4SUQKGQEQATZIMI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6DDD42121F for <linaro@patches.linaro.org>; Thu, 23 Apr 2015 14:52:50 +0000 (UTC) Received: by laat2 with SMTP id t2sf5032602laa.2 for <linaro@patches.linaro.org>; Thu, 23 Apr 2015 07:52:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:reply-to:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:errors-to:x-original-sender :x-original-authentication-results:mailing-list; bh=PxSr8oOvJN3SQQE3chpOgN+XdB63T8+C04NeHM6TOt0=; b=REI8XmsjaVJgz8fxMKPZib+NhZ/RANKQ6kx6YCIQTI7a29iUNSr/qO9b88B0I2Jcej KYhqOPNBnwDUc8R73aamGIUfXjFHWLoocMSGw6vjUvNuaWOq7ju0FcAD2hyJ8YqzW/uW /5wSCOTSnrcelcF0TzWVAyaS16kIFb9YAcMMWN9fIck26CP+7Sz8PECqgEqGfsIRkXtf jKAOkjPS3CaMhgApJCviwaOlsYwz5OU0ZXR+nlRXXXEOFSJqq/ga3wuiKVfpB6PYSxbT O3LliTsups0m41hcobutsF+QPwCKzxAiXCAzRW1uorXs34uTdLc/ymZLtiLKujIkJ3JV q31w== X-Gm-Message-State: ALoCoQkmi+tFUeFFH1CGBGlq/pAue3PaliGarV0piPbOeL3+dMdr2zTEAravxY2mUBsyCNR+6ilQ X-Received: by 10.152.3.70 with SMTP id a6mr1607635laa.0.1429800769376; Thu, 23 Apr 2015 07:52:49 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.8.1 with SMTP id n1ls302614laa.87.gmail; Thu, 23 Apr 2015 07:52:49 -0700 (PDT) X-Received: by 10.152.9.66 with SMTP id x2mr2793629laa.36.1429800769224; Thu, 23 Apr 2015 07:52:49 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id mr8si6127500lbb.104.2015.04.23.07.52.49 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Apr 2015 07:52:49 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by lbcga7 with SMTP id ga7so15159369lbc.1 for <patchwork-forward@linaro.org>; Thu, 23 Apr 2015 07:52:49 -0700 (PDT) X-Received: by 10.112.163.168 with SMTP id yj8mr2792842lbb.36.1429800769107; Thu, 23 Apr 2015 07:52:49 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.67.65 with SMTP id l1csp622222lbt; Thu, 23 Apr 2015 07:52:48 -0700 (PDT) X-Received: by 10.43.89.133 with SMTP id be5mr4163965icc.2.1429800766958; Thu, 23 Apr 2015 07:52:46 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id 84si6941020ioi.91.2015.04.23.07.52.44 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 23 Apr 2015 07:52:46 -0700 (PDT) Received-SPF: pass (google.com: domain of edk2-devel-bounces@lists.sourceforge.net designates 216.34.181.88 as permitted sender) client-ip=216.34.181.88; Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from <edk2-devel-bounces@lists.sourceforge.net>) id 1YlIUV-0008Ha-4w; Thu, 23 Apr 2015 14:52:35 +0000 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from <zhangfei.gao@linaro.org>) id 1YlIUU-0008HB-7U for edk2-devel@lists.sourceforge.net; Thu, 23 Apr 2015 14:52:34 +0000 Received-SPF: pass (sog-mx-4.v43.ch3.sourceforge.com: domain of linaro.org designates 209.85.220.42 as permitted sender) client-ip=209.85.220.42; envelope-from=zhangfei.gao@linaro.org; helo=mail-pa0-f42.google.com; Received: from mail-pa0-f42.google.com ([209.85.220.42]) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1YlIUT-0002GQ-Do for edk2-devel@lists.sourceforge.net; Thu, 23 Apr 2015 14:52:34 +0000 Received: by pacyx8 with SMTP id yx8so20129589pac.1 for <edk2-devel@lists.sourceforge.net>; Thu, 23 Apr 2015 07:52:27 -0700 (PDT) X-Received: by 10.70.42.139 with SMTP id o11mr6108041pdl.66.1429800747801; Thu, 23 Apr 2015 07:52:27 -0700 (PDT) Received: from localhost.localdomain ([180.150.148.224]) by mx.google.com with ESMTPSA id fe3sm6900220pbd.76.2015.04.23.07.52.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 23 Apr 2015 07:52:26 -0700 (PDT) From: Zhangfei Gao <zhangfei.gao@linaro.org> To: olivier.martin@arm.com, leif.lindholm@linaro.org Date: Thu, 23 Apr 2015 22:52:01 +0800 Message-Id: <1429800722-25721-2-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1429800722-25721-1-git-send-email-zhangfei.gao@linaro.org> References: <1429800722-25721-1-git-send-email-zhangfei.gao@linaro.org> X-Spam-Score: -1.5 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_PASS SPF: sender matches SPF record X-Headers-End: 1YlIUT-0002GQ-Do Cc: edk2-devel@lists.sourceforge.net Subject: [edk2] [PATCH 1/2] EmbeddedPkg/AndroidFastboot: change type accordingly X-BeenThere: edk2-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list Reply-To: edk2-devel@lists.sourceforge.net List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/edk2-devel>, <mailto:edk2-devel-request@lists.sourceforge.net?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: edk2-devel-bounces@lists.sourceforge.net X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: zhangfei.gao@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 |
diff --git a/EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp.c b/EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp.c index f380817..91de365 100644 --- a/EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp.c +++ b/EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp.c @@ -45,9 +45,9 @@ typedef enum { STATIC ANDROID_FASTBOOT_STATE mState = ExpectCmdState; // When in ExpectDataState, the number of bytes of data to expect: -STATIC UINT32 mNumDataBytes; +STATIC UINTN mNumDataBytes; // .. and the number of bytes so far received this data phase -STATIC UINT32 mBytesReceivedSoFar; +STATIC UINTN mBytesReceivedSoFar; // .. and the buffer to save data into STATIC UINT8 *mDataBuffer = NULL;
mNumDataBytes and mBytesReceivedSoFar should be change to UINTN. Otherwise process is wrong when downloading big files. Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org> --- EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)