diff options
| author | christos <christos@NetBSD.org> | 1996-10-13 02:21:25 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 1996-10-13 02:21:25 +0000 |
| commit | 92a808f16759d144fda49d58d214aebcdeb0b1bd (patch) | |
| tree | 2a9cba4489715ff5cc454e766cfce6a198f90b9e /sys/miscfs/procfs | |
| parent | a1dcf4b0261cafe6c3e7990470769e959df1de56 (diff) | |
backout previous kprintf changes
Diffstat (limited to 'sys/miscfs/procfs')
| -rw-r--r-- | sys/miscfs/procfs/procfs_mem.c | 14 | ||||
| -rw-r--r-- | sys/miscfs/procfs/procfs_status.c | 30 | ||||
| -rw-r--r-- | sys/miscfs/procfs/procfs_vnops.c | 10 |
3 files changed, 27 insertions, 27 deletions
diff --git a/sys/miscfs/procfs/procfs_mem.c b/sys/miscfs/procfs/procfs_mem.c index b511839d2a8..7e77b60144d 100644 --- a/sys/miscfs/procfs/procfs_mem.c +++ b/sys/miscfs/procfs/procfs_mem.c @@ -1,4 +1,4 @@ -/* $NetBSD: procfs_mem.c,v 1.10 1996/10/10 22:54:14 christos Exp $ */ +/* $NetBSD: procfs_mem.c,v 1.11 1996/10/13 02:21:38 christos Exp $ */ /* * Copyright (c) 1993 Jan-Simon Pendry @@ -277,9 +277,9 @@ procfs_findtextvp(p) if (!error) { vm_pager_t pager; - kprintf("procfs: found vm object\n"); + printf("procfs: found vm object\n"); vm_map_lookup_done(map, out_entry); - kprintf("procfs: vm object = %x\n", object); + printf("procfs: vm object = %x\n", object); /* * At this point, assuming no errors, object @@ -289,21 +289,21 @@ procfs_findtextvp(p) */ pager = object->pager; - kprintf("procfs: pager = %x\n", pager); + printf("procfs: pager = %x\n", pager); if (pager) - kprintf("procfs: found pager, type = %d\n", + printf("procfs: found pager, type = %d\n", pager->pg_type); if (pager && pager->pg_type == PG_VNODE) { struct vnode *vp; vp = (struct vnode *) pager->pg_handle; - kprintf("procfs: vp = 0x%x\n", vp); + printf("procfs: vp = 0x%x\n", vp); return (vp); } } } - kprintf("procfs: text object not found\n"); + printf("procfs: text object not found\n"); return (0); } #endif /* probably_never */ diff --git a/sys/miscfs/procfs/procfs_status.c b/sys/miscfs/procfs/procfs_status.c index ad4b1d6e81c..60f2f63a86c 100644 --- a/sys/miscfs/procfs/procfs_status.c +++ b/sys/miscfs/procfs/procfs_status.c @@ -1,4 +1,4 @@ -/* $NetBSD: procfs_status.c,v 1.12 1996/10/10 22:54:15 christos Exp $ */ +/* $NetBSD: procfs_status.c,v 1.13 1996/10/13 02:21:38 christos Exp $ */ /* * Copyright (c) 1993 Jan-Simon Pendry @@ -84,54 +84,54 @@ procfs_dostatus(curp, p, pfs, uio) bcopy(p->p_comm, ps, MAXCOMLEN); ps[MAXCOMLEN] = '\0'; ps += strlen(ps); - ps += ksprintf(ps, " %d %d %d %d ", pid, ppid, pgid, sid); + ps += sprintf(ps, " %d %d %d %d ", pid, ppid, pgid, sid); if ((p->p_flag&P_CONTROLT) && (tp = sess->s_ttyp)) - ps += ksprintf(ps, "%d,%d ", major(tp->t_dev), + ps += sprintf(ps, "%d,%d ", major(tp->t_dev), minor(tp->t_dev)); else - ps += ksprintf(ps, "%d,%d ", -1, -1); + ps += sprintf(ps, "%d,%d ", -1, -1); sep = ""; if (sess->s_ttyvp) { - ps += ksprintf(ps, "%sctty", sep); + ps += sprintf(ps, "%sctty", sep); sep = ","; } if (SESS_LEADER(p)) { - ps += ksprintf(ps, "%ssldr", sep); + ps += sprintf(ps, "%ssldr", sep); sep = ","; } if (*sep != ',') - ps += ksprintf(ps, "noflags"); + ps += sprintf(ps, "noflags"); if (p->p_flag & P_INMEM) - ps += ksprintf(ps, " %ld,%ld", + ps += sprintf(ps, " %ld,%ld", p->p_stats->p_start.tv_sec, p->p_stats->p_start.tv_usec); else - ps += ksprintf(ps, " -1,-1"); + ps += sprintf(ps, " -1,-1"); { struct timeval ut, st; calcru(p, &ut, &st, (void *) 0); - ps += ksprintf(ps, " %ld,%ld %ld,%ld", + ps += sprintf(ps, " %ld,%ld %ld,%ld", ut.tv_sec, ut.tv_usec, st.tv_sec, st.tv_usec); } - ps += ksprintf(ps, " %s", + ps += sprintf(ps, " %s", (p->p_wchan && p->p_wmesg) ? p->p_wmesg : "nochan"); cr = p->p_ucred; - ps += ksprintf(ps, " %d", cr->cr_uid); - ps += ksprintf(ps, " %d", cr->cr_gid); + ps += sprintf(ps, " %d", cr->cr_uid); + ps += sprintf(ps, " %d", cr->cr_gid); for (i = 0; i < cr->cr_ngroups; i++) - ps += ksprintf(ps, ",%d", cr->cr_groups[i]); - ps += ksprintf(ps, "\n"); + ps += sprintf(ps, ",%d", cr->cr_groups[i]); + ps += sprintf(ps, "\n"); xlen = ps - psbuf; xlen -= uio->uio_offset; diff --git a/sys/miscfs/procfs/procfs_vnops.c b/sys/miscfs/procfs/procfs_vnops.c index 4ae2baa5b07..28bb12eae77 100644 --- a/sys/miscfs/procfs/procfs_vnops.c +++ b/sys/miscfs/procfs/procfs_vnops.c @@ -1,4 +1,4 @@ -/* $NetBSD: procfs_vnops.c,v 1.43 1996/10/10 22:54:17 christos Exp $ */ +/* $NetBSD: procfs_vnops.c,v 1.44 1996/10/13 02:21:39 christos Exp $ */ /* * Copyright (c) 1993 Jan-Simon Pendry @@ -401,7 +401,7 @@ procfs_print(v) } */ *ap = v; struct pfsnode *pfs = VTOPFS(ap->a_vp); - kprintf("tag VT_PROCFS, type %d, pid %d, mode %x, flags %lx\n", + printf("tag VT_PROCFS, type %d, pid %d, mode %x, flags %lx\n", pfs->pfs_type, pfs->pfs_pid, pfs->pfs_mode, pfs->pfs_flags); return 0; } @@ -556,7 +556,7 @@ procfs_getattr(v) vap->va_uid = 0; vap->va_gid = 0; vap->va_size = vap->va_bytes = - ksprintf(buf, "%ld", (long)curproc->p_pid); + sprintf(buf, "%ld", (long)curproc->p_pid); break; } @@ -877,7 +877,7 @@ procfs_readdir(v) goto done; } d.d_fileno = PROCFS_FILENO(p->p_pid, Pproc); - d.d_namlen = ksprintf(d.d_name, "%ld", + d.d_namlen = sprintf(d.d_name, "%ld", (long)p->p_pid); d.d_type = DT_REG; p = p->p_list.le_next; @@ -926,7 +926,7 @@ procfs_readlink(v) if (VTOPFS(ap->a_vp)->pfs_fileno != PROCFS_FILENO(0, Pcurproc)) return (EINVAL); - len = ksprintf(buf, "%ld", (long)curproc->p_pid); + len = sprintf(buf, "%ld", (long)curproc->p_pid); return (uiomove((caddr_t)buf, len, ap->a_uio)); } |
