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.87 #1 (Red Hat Linux)) id 1eHpRP-0006Pt-Ft for barebox@lists.infradead.ORG; Thu, 23 Nov 2017 11:13:13 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Thu, 23 Nov 2017 12:12:36 +0100 Message-Id: <20171123111237.10245-4-u.kleine-koenig@pengutronix.de> In-Reply-To: <20171123111237.10245-1-u.kleine-koenig@pengutronix.de> References: <20171122102231.16872-1-u.kleine-koenig@pengutronix.de> <20171123111237.10245-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 10/6] net/e1000: indicate in error messages where the failure occured To: barebox@lists.infradead.org Cc: Andrey Smirnov VGhlcmUgdXNlZCB0byBiZSBmb3VyIHBsYWNlcyB0aGF0IGFsbCBlbWl0IHRoZSBzYW1lIGVycm9y IG1lc3NhZ2UuIEV2ZW4KaWYgaW4gYSBnaXZlbiBjb250ZXh0IG5vdCBhbGwgZm91ciBvZiB0aGVt IGNhbiBiZSByZWxldmFudCwgdGhlcmUgYXJlCmFsd2F5cyB0d28gcG9zc2libGUgbG9jYXRpb25z IHdoZXJlIHRoZSBtZXNzYWdlIGNhbiBvcmlnaW4gZnJvbS4KClNvIG1ha2UgdGhlIG91dHB1dCBz bGlnaHRseSBkaWZmZXJlbnQgaW4gYWxsIHBsYWNlcyB0byBlYXNlIGZ1dHVyZQpkZWJ1Z2dpbmcu CgpTaWduZWQtb2ZmLWJ5OiBVd2UgS2xlaW5lLUvDtm5pZyA8dS5rbGVpbmUta29lbmlnQHBlbmd1 dHJvbml4LmRl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