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 1f78A7-0008EE-6K for barebox@lists.infradead.org; Fri, 13 Apr 2018 23:31:25 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Sat, 14 Apr 2018 01:30:52 +0200 Message-Id: <20180413233053.15570-3-u.kleine-koenig@pengutronix.de> In-Reply-To: <20180413233053.15570-1-u.kleine-koenig@pengutronix.de> References: <20180413233053.15570-1-u.kleine-koenig@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 3/4] pci: improve debug output To: barebox@lists.infradead.org UHJpbnQgYSBzaW5nbGUgbGluZSBwZXIgYmFyIHdpdGggYWxsIHJlbGV2YW50IGluZm9ybWF0aW9u IGFuZCBpbmRlbnQgaXQKYnkgYSBzcGFjZSB0byBncm91cCB0aGVtIHRvZ2V0aGVyIHBlciBkZXZp Y2UuCgpTaWduZWQtb2ZmLWJ5OiBVd2UgS2xlaW5lLUvDtm5pZyA8dS5rbGVpbmUta29lbmlnQHBl bmd1dHJvbml4LmRlPgotLS0KIGRyaXZlcnMvcGNpL3BjaS5jIHwgMTUgKysrKysrKystLS0tLS0t CiAxIGZpbGUgY2hhbmdlZCwgOCBpbnNlcnRpb25zKCspLCA3IGRlbGV0aW9ucygtKQoKZGlmZiAt LWdpdCBhL2RyaXZlcnMvcGNpL3BjaS5jIGIvZHJpdmVycy9wY2kvcGNpLmMKaW5kZXggODczNTli NmRlODJjLi44MzdlMTdhYTgzOTcgMTAwNjQ0Ci0tLSBhL2RyaXZlcnMvcGNpL3BjaS5jCisrKyBi L2Ry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