summaryrefslogtreecommitdiff
path: root/sys/arch/loongson/dev
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2016-10-08 05:49:10 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2016-10-08 05:49:10 +0000
commit29a294262159642c660004881afe5b4bbe97c353 (patch)
treebf7375ba0b0e155f57b31b312ffbc267a9fc17b5 /sys/arch/loongson/dev
parentfd60b00ccc9cd707e9e91296df00083e9a6b1ad9 (diff)
Various printf claim to report the PID, so actually report that and not the TID
Build testing assistance from deraadt@
Diffstat (limited to 'sys/arch/loongson/dev')
-rw-r--r--sys/arch/loongson/dev/apm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/loongson/dev/apm.c b/sys/arch/loongson/dev/apm.c
index fcc1a0269be..74ca43a1ea3 100644
--- a/sys/arch/loongson/dev/apm.c
+++ b/sys/arch/loongson/dev/apm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apm.c,v 1.30 2016/09/03 14:46:56 naddy Exp $ */
+/* $OpenBSD: apm.c,v 1.31 2016/10/08 05:49:08 guenther Exp $ */
/*-
* Copyright (c) 2001 Alexander Guy. All rights reserved.
@@ -153,7 +153,7 @@ apmopen(dev_t dev, int flag, int mode, struct proc *p)
return ENXIO;
DPRINTF(("apmopen: dev %d pid %d flag %x mode %x\n",
- APMDEV(dev), p->p_pid, flag, mode));
+ APMDEV(dev), p->p_p->ps_pid, flag, mode));
switch (APMDEV(dev)) {
case APMDEV_CTL:
@@ -191,7 +191,8 @@ apmclose(dev_t dev, int flag, int mode, struct proc *p)
!(sc = apm_cd.cd_devs[APMUNIT(dev)]))
return ENXIO;
- DPRINTF(("apmclose: pid %d flag %x mode %x\n", p->p_pid, flag, mode));
+ DPRINTF(("apmclose: pid %d flag %x mode %x\n",
+ p->p_p->ps_pid, flag, mode));
switch (APMDEV(dev)) {
case APMDEV_CTL: