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-0005jT-TX for barebox@lists.infradead.org; Fri, 08 Feb 2019 07:16:01 +0000 From: =?UTF-8?q?Ulrich=20=C3=96lmann?= Date: Fri, 8 Feb 2019 08:15:21 +0100 Message-Id: <20190208071526.19150-3-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 2/7] common: state: fix formatting of "off_t" variables To: Barebox List VG8gaGFybW9uaXplIHRoZSBjb21tb24gY29kZWJhc2UgdGhpcyBwb3J0cyB0aGUgZm9sbG93aW5n IGR0LXV0aWxzIGNvbW1pdDoKCnwgY29tbWl0IDg5ZDAzMzI4NGNiNjlmODM0YzFmMjE5NWM5ZTk5 YTNkN2Y1ODVjZjEKfCBBdXRob3I6IFVscmljaCDDlmxtYW5uIDx1Lm9lbG1hbm5AcGVuZ3V0cm9u aXguZGU+CnwgRGF0ZTogICBTdW4gRmViIDMgMjI6NDg6MDYgMjAxOSArMDEwMAp8CnwgICAgIHN0 YXRlOiBmaXggZm9ybWF0dGluZyBvZiAib2ZmX3QiIHZhcmlhYmxlcwp8CnwgICAgIEV4cGxpY2l0 ZWx5IGNhc3RpbmcgYW4gIm9mZl90IiB2YXJpYWJsZSB0byAibG9uZyBsb25nIiBhbmQgZm9ybWF0 dGluZyBpdCB2aWEKfCAgICAgIiVsbGQiIG9yICIlbGx4IiByZXNwZWN0aXZlbHkgbWFrZXMgMzIt IGFzIHdlbG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