Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci/qat Fix macro error if QAT_DUMP is defined for d...



details:   https://anonhg.NetBSD.org/src/rev/3b364e28e0d4
branches:  trunk
changeset: 465786:3b364e28e0d4
user:      hikaru <hikaru%NetBSD.org@localhost>
date:      Wed Dec 04 01:06:28 2019 +0000

description:
Fix macro error if QAT_DUMP is defined for debugging.

diffstat:

 sys/dev/pci/qat/qat.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b18ee83c1a23 -r 3b364e28e0d4 sys/dev/pci/qat/qat.c
--- a/sys/dev/pci/qat/qat.c     Tue Dec 03 22:42:29 2019 +0000
+++ b/sys/dev/pci/qat/qat.c     Wed Dec 04 01:06:28 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: qat.c,v 1.2 2019/12/02 03:06:51 msaitoh Exp $  */
+/*     $NetBSD: qat.c,v 1.3 2019/12/04 01:06:28 hikaru Exp $   */
 
 /*
  * Copyright (c) 2019 Internet Initiative Japan, Inc.
@@ -57,7 +57,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: qat.c,v 1.2 2019/12/02 03:06:51 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: qat.c,v 1.3 2019/12/04 01:06:28 hikaru Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -2126,7 +2126,7 @@
 
        printf("dumping %s at %p len %zu\n", label, d, len);
 
-       pc = __RETURN_ADDRESS;
+       pc = (uintptr_t)__builtin_return_address(0);
        printf("\tcallpc ");
        qat_print_sym(pc);
        printf("\n");



Home | Main Index | Thread Index | Old Index