Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/dev add __func__ to some panic strings.



details:   https://anonhg.NetBSD.org/src/rev/e1cccae06c7d
branches:  trunk
changeset: 824395:e1cccae06c7d
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Jun 03 21:32:43 2017 +0000

description:
add __func__ to some panic strings.

diffstat:

 sys/arch/sparc64/dev/schizo.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r bdd7e18fc256 -r e1cccae06c7d sys/arch/sparc64/dev/schizo.c
--- a/sys/arch/sparc64/dev/schizo.c     Sat Jun 03 21:31:14 2017 +0000
+++ b/sys/arch/sparc64/dev/schizo.c     Sat Jun 03 21:32:43 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: schizo.c,v 1.38 2017/03/26 18:38:33 martin Exp $       */
+/*     $NetBSD: schizo.c,v 1.39 2017/06/03 21:32:43 mrg Exp $  */
 /*     $OpenBSD: schizo.c,v 1.55 2008/08/18 20:29:37 brad Exp $        */
 
 /*
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: schizo.c,v 1.38 2017/03/26 18:38:33 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: schizo.c,v 1.39 2017/06/03 21:32:43 mrg Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -439,7 +439,7 @@
                }
        }
 
-       panic("%s: fatal", device_xname(sc->sc_dev));
+       panic("%s: %s: fatal", __func__, device_xname(sc->sc_dev));
 
  clear_error:
        schizo_cfg_write(sp, PCI_COMMAND_STATUS_REG, csr);
@@ -461,7 +461,7 @@
        printf("CE_AFSR=%" PRIx64 "\n", schizo_read(sc, SCZ_CE_AFSR));
        printf("CE_AFAR=%" PRIx64 "\n", schizo_read(sc, SCZ_CE_AFAR));
 
-       panic("%s: fatal", device_xname(sc->sc_dev));
+       panic("%s: %s: fatal", __func__, device_xname(sc->sc_dev));
        return (1);
 }
 



Home | Main Index | Thread Index | Old Index