From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: =?UTF-8?q?Ulrich=20=C3=96lmann?= Date: Sun, 3 Feb 2019 22:48:06 +0100 Message-Id: <20190203214807.13643-12-u.oelmann@pengutronix.de> In-Reply-To: <20190203214807.13643-1-u.oelmann@pengutronix.de> References: <20190203214807.13643-1-u.oelmann@pengutronix.de> MIME-Version: 1.0 Subject: [OSS-Tools] [PATCH dt-utils 11/12] state: fix formatting of "off_t" variables List-Id: Pengutronix Public Open-Source-Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: oss-tools-bounces@pengutronix.de Sender: "OSS-Tools" To: Pengutronix Public Open-Source-Development Cc: =?UTF-8?q?Ulrich=20=C3=96lmann?= , entwicklung@pengutronix.de RXhwbGljaXRlbHkgY2FzdGluZyBhbiAib2ZmX3QiIHZhcmlhYmxlIHRvICJsb25nIGxvbmciIGFu ZCBmb3JtYXR0aW5nIGl0IHZpYQoiJWxsZCIgb3IgIiVsbHgiIHJlc3BlY3RpdmVseSBtYWtlcyAz Mi0gYXMgd2VsbCBhcyA2NC1iaXQgY29tcGlsZXJzCmhhcHB5ICh0ZXN0ZWQgd2l0aCBnY2MtOC4y LjEgYW5kIGNsYW5nLTcuMC4xKS4KClNpZ25lZC1vZmYtYnk6IFVscmljaCDDlmxtYW5uIDx1Lm9l bG1hbm5AcGVuZ3V0cm9uaXguZGU+Ci0tLQogc3JjL2JhcmVib3gtc3RhdGUvYmFja2VuZF9idWNr ZXRfY2lyY3VsYXIuYyB8IDMyICsrKysrKysrKystLS0tLS0tLS0tLQogc3JjL2JhcmVib3gtc3Rh dGUvYmFja2VuZF9zdG9yYWdlLmMgICAgICAgICB8IDIwICsrKysrKy0tLS0tLS0KIDIgZmlsZXMg Y2hhbmdlZCwgMjYgaW5zZXJ0aW9ucygrKSwgMjYgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEv c3Jj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