Module Name: src Committed By: jmcneill Date: Sat Aug 27 20:49:36 UTC 2011
Modified Files: src/sys/arch/usermode/dev: cpu.c Log Message: CPU_DEBUG: remove printf in cpu_signotify, and print pid/lid in cpu_switchto To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/sys/arch/usermode/dev/cpu.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/usermode/dev/cpu.c diff -u src/sys/arch/usermode/dev/cpu.c:1.16 src/sys/arch/usermode/dev/cpu.c:1.17 --- src/sys/arch/usermode/dev/cpu.c:1.16 Wed Aug 24 19:55:35 2011 +++ src/sys/arch/usermode/dev/cpu.c Sat Aug 27 20:49:36 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: cpu.c,v 1.16 2011/08/24 19:55:35 jmcneill Exp $ */ +/* $NetBSD: cpu.c,v 1.17 2011/08/27 20:49:36 jmcneill Exp $ */ /*- * Copyright (c) 2007 Jared D. McNeill <jmcne...@invisible.ca> @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.16 2011/08/24 19:55:35 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.17 2011/08/27 20:49:36 jmcneill Exp $"); #include <sys/param.h> #include <sys/conf.h> @@ -156,9 +156,13 @@ struct cpu_info *ci = curcpu(); #ifdef CPU_DEBUG - printf("cpu_switchto [%s] -> [%s]\n", + printf("cpu_switchto [%s,pid=%d,lid=%d] -> [%s,pid=%d,lid=%d]\n", oldlwp ? oldlwp->l_name : "none", - newlwp ? newlwp->l_name : "none"); + oldlwp ? oldlwp->l_proc->p_pid : -1, + oldlwp ? oldlwp->l_lid : -1, + newlwp ? newlwp->l_name : "none", + newlwp ? newlwp->l_proc->p_pid : -1, + newlwp ? newlwp->l_lid : -1); if (oldpcb) { printf(" oldpcb uc_link=%p, uc_stack.ss_sp=%p, " "uc_stack.ss_size=%d\n", @@ -202,9 +206,6 @@ void cpu_signotify(struct lwp *l) { -#ifdef CPU_DEBUG - printf("cpu_signotify\n"); -#endif } void