From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from inx.pm.waw.pl ([195.116.170.130]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1PUok9-0002ou-5N for barebox@lists.infradead.org; Mon, 20 Dec 2010 23:02:14 +0000 From: Krzysztof Halasa In-Reply-To: (Krzysztof Halasa's message of "Mon, 20 Dec 2010 23:30:03 +0100") Date: Tue, 21 Dec 2010 00:02:02 +0100 Message-ID: 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 8] Cosmetic fixes, including format attributes for printf() and friends. To: barebox@lists.infradead.org U2lnbmVkLW9mZi1ieTogS3J6eXN6dG9mIEhhxYJhc2EgPGtoY0BwbS53YXcucGw+CgpkaWZmIC0t Z2l0IGEvY29tbWFuZHMvY3JjLmMgYi9jb21tYW5kcy9jcmMuYwppbmRleCAwODczYTFjLi45OTMw NzRjIDEwMDY0NAotLS0gYS9jb21tYW5kcy9jcmMuYworKysgYi9jb21tYW5kcy9jcmMuYwpAQCAt MTM0LDcgKzEzNCw3IEBAIHN0YXRpYyBpbnQgZG9fY3JjKHN0cnVjdCBjb21tYW5kICpjbWR0cCwg aW50IGFyZ2MsIGNoYXIgKmFyZ3ZbXSkKICNlbmRpZgogCiAJaWYgKHZlcmlmeSAmJiBjcmMgIT0g dmNyYykgewotCQlwcmludGYoIiAhPSAweCUwOHggKiogRVJST1IgKioiLCB2Y3JjKTsKKwkJcHJp bnRmKCIgIT0gMHglMDhseCAqKiBFUlJPUiAqKiIsIHZjcmMpOwogCQllcnIgPSAxOwogCX0KIApk aWZmIC0tZ2l0IGEvY29tbWFuZHMvZmxhc2guYyBiL2NvbW1hbmRzL2ZsYXNoLmMKaW5kZXggOWEw ZWI1MC4uYTN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