From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Roland Hieber Date: Wed, 14 Jun 2017 12:31:25 +0200 Message-Id: <20170614103126.22766-1-r.hieber@pengutronix.de> Subject: [ptxdist] [PATCH 1/2] ptxd_lib_template: fix indentation List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Roland Hieber U2lnbmVkLW9mZi1ieTogUm9sYW5kIEhpZWJlciA8ci5oaWViZXJAcGVuZ3V0cm9uaXguZGU+Ci0t LQogc2NyaXB0cy9saWIvcHR4ZF9saWJfdGVtcGxhdGUuc2ggfCA5MiArKysrKysrKysrKysrKysr KysrKy0tLS0tLS0tLS0tLS0tLS0tLS0tCiAxIGZpbGUgY2hhbmdlZCwgNDcgaW5zZXJ0aW9ucygr KSwgNDUgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvc2NyaXB0cy9saWIvcHR4ZF9saWJfdGVt cGxhdGUuc2ggYi9zY3JpcHRzL2xpYi9wdHhkX2xpYl90ZW1wbGF0ZS5zaAppbmRleCA2OGM2MTQy MTguLjZhNDc4ZThmYSAxMDA2NDQKLS0tIGEvc2NyaXB0cy9saWIvcHR4ZF9saWJfdGVtcGxhdGUu c2gKKysrIGIvc2NyaXB0cy9saWIvcHR4ZF9saWJfdGVtcGxhdGUuc2gKQEAgLTksNyArOSw3IEBA CiAjCiAKIGlmIGVjaG8gfCByZWFkIC1pIGZvbyAtcCBiYXIgLWUgPiAvZGV2L251bGwgMj4mMTsg dGhlbgotCV9wdHhkX2Nhbl9yZWFkX2luaXRpYWw9MQorICAgIF9wdHhkX2Nhbl9yZWFkX2luaXRp YWw9MQogZmkKIGV4cG9ydCBfcHR4ZF9jYW5fcmVhZF9pbml0aWFs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