048-net-mvneta-fix-error-messages-in-mvneta_port_down-fu.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233
  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. This commit corrects error printing when shutting down the port.
  5. [gregory.clement@free-electrons.com: split initial commit in two
  6. individual changes]
  7. Signed-off-by: Dmitri Epshtein <dima@marvell.com>
  8. Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
  9. Signed-off-by: David S. Miller <davem@davemloft.net>
  10. ---
  11. --- a/drivers/net/ethernet/marvell/mvneta.c
  12. +++ b/drivers/net/ethernet/marvell/mvneta.c
  13. @@ -1106,7 +1106,7 @@ static void mvneta_port_down(struct mvne
  14. do {
  15. if (count++ >= MVNETA_RX_DISABLE_TIMEOUT_MSEC) {
  16. netdev_warn(pp->dev,
  17. - "TIMEOUT for RX stopped ! rx_queue_cmd: 0x08%x\n",
  18. + "TIMEOUT for RX stopped ! rx_queue_cmd: 0x%08x\n",
  19. val);
  20. break;
  21. }
  22. @@ -1145,7 +1145,7 @@ static void mvneta_port_down(struct mvne
  23. do {
  24. if (count++ >= MVNETA_TX_FIFO_EMPTY_TIMEOUT) {
  25. netdev_warn(pp->dev,
  26. - "TX FIFO empty timeout status=0x08%x\n",
  27. + "TX FIFO empty timeout status=0x%08x\n",
  28. val);
  29. break;
  30. }