From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from webbox1416.server-home.net ([77.236.96.61]) by metis.ext.pengutronix.de with esmtp (Exim 4.80) (envelope-from ) id 1ZvjUJ-00073D-CF for ptxdist@pengutronix.de; Mon, 09 Nov 2015 11:15:47 +0100 Received: from imapserver.systec-electronic.com (unknown [212.185.67.146]) by webbox1416.server-home.net (Postfix) with ESMTPA id 122D327A4C8 for ; Mon, 9 Nov 2015 11:15:47 +0100 (CET) From: Alexander Stein Date: Mon, 9 Nov 2015 11:15:41 +0100 Message-Id: <1447064141-1612-1-git-send-email-alexander.stein@systec-electronic.com> Subject: [ptxdist] [PATCH] mtd-utils: Add patch to fix flashcp progress output List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Alexander Stein U2lnbmVkLW9mZi1ieTogQWxleGFuZGVyIFN0ZWluIDxhbGV4YW5kZXIuc3RlaW5Ac3lzdGVjLWVs ZWN0cm9uaWMuY29tPgotLS0KIC4uLnNoY3AtVXNlLVBSSWRvZmZfdC10by1maXgtcHJvZ3Jlc3Mt b3V0cHV0LnBhdGNoIHwgMTA3ICsrKysrKysrKysrKysrKysrKysrKwogcGF0Y2hlcy9tdGQtdXRp bHMtMS41LjIvc2VyaWVzICAgICAgICAgICAgICAgICAgICAgfCAgIDMgKy0KIDIgZmlsZXMgY2hh bmdlZCwgMTA5IGluc2VydGlvbnMoKyksIDEgZGVsZXRpb24oLSkKIGNyZWF0ZSBtb2RlIDEwMDY0 NCBwYXRjaGVzL210ZC11dGlscy0xLjUuMi8wMDA4LWZsYXNoY3AtVXNlLVBSSWRvZmZfdC10by1m aXgtcHJvZ3Jlc3Mtb3V0cHV0LnBhdGNoCgpkaWZmIC0tZ2l0I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