Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci/ixgbe Print the error value of ixgbe_reset_hw() ...



details:   https://anonhg.NetBSD.org/src/rev/58e445d09884
branches:  trunk
changeset: 379049:58e445d09884
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Fri May 07 09:15:52 2021 +0000

description:
Print the error value of ixgbe_reset_hw() for debugging.

diffstat:

 sys/dev/pci/ixgbe/ixgbe.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 379aa251d266 -r 58e445d09884 sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Thu May 06 16:15:33 2021 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Fri May 07 09:15:52 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe.c,v 1.281 2021/04/30 06:55:32 msaitoh Exp $ */
+/* $NetBSD: ixgbe.c,v 1.282 2021/05/07 09:15:52 msaitoh Exp $ */
 
 /******************************************************************************
 
@@ -64,7 +64,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ixgbe.c,v 1.281 2021/04/30 06:55:32 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ixgbe.c,v 1.282 2021/05/07 09:15:52 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -1004,7 +1004,8 @@ ixgbe_attach(device_t parent, device_t d
                unsupported_sfp = true;
                error = IXGBE_SUCCESS;
        } else if (error) {
-               aprint_error_dev(dev, "Hardware initialization failed\n");
+               aprint_error_dev(dev,
+                   "Hardware initialization failed(error = %d)\n", error);
                error = EIO;
                goto err_late;
        }



Home | Main Index | Thread Index | Old Index