From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SjoEq-0000O8-Vq for barebox@lists.infradead.org; Wed, 27 Jun 2012 09:08:41 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Wed, 27 Jun 2012 11:08:33 +0200 Message-Id: <1340788113-3171-1-git-send-email-u.kleine-koenig@pengutronix.de> In-Reply-To: <20120627082537.GE1623@pengutronix.de> References: <20120627082537.GE1623@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] commands/crc: assert newline after output with big offsets To: barebox@lists.infradead.org Cc: kernel@pengutronix.de VGhpcyBmaXhlcwoKCWJhcmVib3hAVmVyeSBsb25nIGJvYXJkIG5hbWU6LyBjcmMzMiAtZiAvZGV2 L21lbSAweDgzZjAwMDAwKzB4ZmZmCglDUkMzMiBmb3IgL2Rldi9tZW0gMHg4M2ZmZjAwMCAuLi4g MHg4M2ZmZmZmZSA9PT4gMHhhMDgwNTg0YmJhcmVib3hAVmVyeSBsb25nIGJvYXJkIG5hbWU6LwoK VGhlIHByb2JsZW0gaGVyZSB3YXMgdGhhdCB0aGUgcmV0dXJuIHZhbHVlIG9mCmxzZWVrKGZkLCAw eDgzZjAwMDAwLCBTRUVLX1NFVCkgKHdoaWNoIGlzIDB4ODNmMDAwMDApIHdhcyBjYXN0ZWQgdG8g YW4KaW50ICh3aGljaCBpcyAtMjA4MTQyMzM2MCksIHJldHVybmVkIHRvIGRvX2NyYyBhbmQgaW50 ZXJwcmV0ZWQgYXMKZXJyb3IgdGhlcmUgd2l0aG91dCB5aWVsZ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