From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gs0O9-0005jS-NQ for barebox@lists.infradead.org; Fri, 08 Feb 2019 07:15:55 +0000 From: =?UTF-8?q?Ulrich=20=C3=96lmann?= Date: Fri, 8 Feb 2019 08:15:20 +0100 Message-Id: <20190208071526.19150-2-u.oelmann@pengutronix.de> In-Reply-To: <20190208071526.19150-1-u.oelmann@pengutronix.de> References: <20190208071526.19150-1-u.oelmann@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" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 1/7] common: state: fix compiler warnings about wrong type conversion in messages To: Barebox List VG8gaGFybW9uaXplIHRoZSBjb21tb24gY29kZWJhc2UgdGhpcyBwb3J0cyB0aGUgcmVtYWluaW5n IGh1bmtzIG9mIHRoZSBmb2xsb3dpbmcKZHQtdXRpbHMgY29tbWl0LCBhcyB0aGUgcmVzaWR1YWwg aHVua3MgaGF2ZSBpbmRlcGVuZGVudGx5IGFscmVhZHkgYmVlbiBkb25lCmJlZm9yZSBpbiBiYXJl Ym94IGNvbW1pdCAxYWZiZjZiNTY4MGUgKCJzdGF0ZTogZml4IGNvbXBpbGUgd2FybmluZ3MgZm9y IGRldl9lcnIKZXhwYW5zaW9uIik6Cgp8IGNvbW1pdCA5ZjFkYjczMjM0YjQwZjRlYTA3MTQyMWU4 MTc5MDY1ZGYxNjIxMWVjCnwgQXV0aG9yOiBQaGlsaXBwIFJvc2VuYmVyZ2VyIDxwLnJvc2VuYmVy Z2VyQGxpbnV0cm9uaXguZGU+CnwgRGF0ZTogICBUaHUgT2N0IDE4IDA5OjE3OjIzIDIwMTggKz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