mvebu: backport upstream ethernet driver improvements and enable buffer manager support
[librecmc/librecmc.git] / target / linux / mvebu / patches-4.4 / 048-net-mvneta-fix-error-messages-in-mvneta_port_down-fu.patch
1 From: Dmitri Epshtein <dima@marvell.com>
2 Date: Sat, 12 Mar 2016 18:44:19 +0100
3 Subject: [PATCH] net: mvneta: fix error messages in mvneta_port_down function
4
5 This commit corrects error printing when shutting down the port.
6
7 [gregory.clement@free-electrons.com: split initial commit in two
8 individual changes]
9 Signed-off-by: Dmitri Epshtein <dima@marvell.com>
10 Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
11 Signed-off-by: David S. Miller <davem@davemloft.net>
12 ---
13
14 --- a/drivers/net/ethernet/marvell/mvneta.c
15 +++ b/drivers/net/ethernet/marvell/mvneta.c
16 @@ -1105,7 +1105,7 @@ static void mvneta_port_down(struct mvne
17         do {
18                 if (count++ >= MVNETA_RX_DISABLE_TIMEOUT_MSEC) {
19                         netdev_warn(pp->dev,
20 -                                   "TIMEOUT for RX stopped ! rx_queue_cmd: 0x08%x\n",
21 +                                   "TIMEOUT for RX stopped ! rx_queue_cmd: 0x%08x\n",
22                                     val);
23                         break;
24                 }
25 @@ -1144,7 +1144,7 @@ static void mvneta_port_down(struct mvne
26         do {
27                 if (count++ >= MVNETA_TX_FIFO_EMPTY_TIMEOUT) {
28                         netdev_warn(pp->dev,
29 -                                   "TX FIFO empty timeout status=0x08%x\n",
30 +                                   "TX FIFO empty timeout status=0x%08x\n",
31                                     val);
32                         break;
33                 }