diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2016-10-08 05:52:07 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2016-10-08 05:52:07 +0000 |
commit | d44367aeca165fc751609e0c6b01a4af7a003845 (patch) | |
tree | c5b982a2a0bd01801b7ed118903ded0792feef3b /sys/dev/pci/drm/drm_linux.h | |
parent | 29a294262159642c660004881afe5b4bbe97c353 (diff) |
Various printf claim to report the PID, so actually report that and not the TID
ok kettenis@ tedu@
Diffstat (limited to 'sys/dev/pci/drm/drm_linux.h')
-rw-r--r-- | sys/dev/pci/drm/drm_linux.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/pci/drm/drm_linux.h b/sys/dev/pci/drm/drm_linux.h index 7ed74f26ebc..a7a212751d1 100644 --- a/sys/dev/pci/drm/drm_linux.h +++ b/sys/dev/pci/drm/drm_linux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: drm_linux.h,v 1.47 2016/04/05 20:44:03 kettenis Exp $ */ +/* $OpenBSD: drm_linux.h,v 1.48 2016/10/08 05:52:06 guenther Exp $ */ /* * Copyright (c) 2013, 2014, 2015 Mark Kettenis * @@ -129,23 +129,23 @@ typedef off_t loff_t; #endif #define dev_warn(dev, fmt, arg...) \ - printf("drm:pid%d:%s *WARNING* " fmt, curproc->p_pid, \ + printf("drm:pid%d:%s *WARNING* " fmt, curproc->p_p->ps_pid, \ __func__ , ## arg) #define dev_notice(dev, fmt, arg...) \ - printf("drm:pid%d:%s *NOTICE* " fmt, curproc->p_pid, \ + printf("drm:pid%d:%s *NOTICE* " fmt, curproc->p_p->ps_pid, \ __func__ , ## arg) #define dev_crit(dev, fmt, arg...) \ - printf("drm:pid%d:%s *ERROR* " fmt, curproc->p_pid, \ + printf("drm:pid%d:%s *ERROR* " fmt, curproc->p_p->ps_pid, \ __func__ , ## arg) #define dev_err(dev, fmt, arg...) \ - printf("drm:pid%d:%s *ERROR* " fmt, curproc->p_pid, \ + printf("drm:pid%d:%s *ERROR* " fmt, curproc->p_p->ps_pid, \ __func__ , ## arg) #ifdef DRMDEBUG #define dev_info(dev, fmt, arg...) \ printf("drm: " fmt, ## arg) #define dev_debug(dev, fmt, arg...) \ - printf("drm:pid%d:%s *DEBUG* " fmt, curproc->p_pid, \ + printf("drm:pid%d:%s *DEBUG* " fmt, curproc->p_p->ps_pid, \ __func__ , ## arg) #else #define dev_info(dev, fmt, arg...) \ |