printf -> kprintf, sprintf -> ksprintf
This commit is contained in:
parent
de1b2b437e
commit
5476886e52
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: adlookup.c,v 1.14 1996/05/24 20:16:02 is Exp $ */
|
||||
/* $NetBSD: adlookup.c,v 1.15 1996/10/10 17:47:29 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Christian E. Hopps
|
||||
@ -192,7 +192,7 @@ adosfs_lookup(v)
|
||||
while (bn != 0) {
|
||||
if ((error = VFS_VGET(vdp->v_mount, (ino_t)bn, vpp)) != 0) {
|
||||
#ifdef ADOSFS_DIAGNOSTIC
|
||||
printf("[aget] %d)", error);
|
||||
kprintf("[aget] %d)", error);
|
||||
#endif
|
||||
/* XXX check to unlock parent possibly? */
|
||||
return(error);
|
||||
@ -226,7 +226,7 @@ adosfs_lookup(v)
|
||||
if ((nameiop == CREATE || nameiop == RENAME) && last) {
|
||||
if ((error = VOP_ACCESS(vdp, VWRITE, ucp, cnp->cn_proc)) != 0) {
|
||||
#ifdef ADOSFS_DIAGNOSTIC
|
||||
printf("[VOP_ACCESS] %d)", error);
|
||||
kprintf("[VOP_ACCESS] %d)", error);
|
||||
#endif
|
||||
return (error);
|
||||
}
|
||||
@ -234,14 +234,14 @@ adosfs_lookup(v)
|
||||
VOP_UNLOCK(vdp);
|
||||
cnp->cn_nameiop |= SAVENAME;
|
||||
#ifdef ADOSFS_DIAGNOSTIC
|
||||
printf("EJUSTRETURN)");
|
||||
kprintf("EJUSTRETURN)");
|
||||
#endif
|
||||
return(EJUSTRETURN);
|
||||
}
|
||||
if ((cnp->cn_flags & MAKEENTRY) && nameiop != CREATE)
|
||||
cache_enter(vdp, NULL, cnp);
|
||||
#ifdef ADOSFS_DIAGNOSTIC
|
||||
printf("ENOENT)");
|
||||
kprintf("ENOENT)");
|
||||
#endif
|
||||
return(ENOENT);
|
||||
|
||||
@ -275,7 +275,7 @@ found_lockdone:
|
||||
cache_enter(vdp, *vpp, cnp);
|
||||
|
||||
#ifdef ADOSFS_DIAGNOSTIC
|
||||
printf("0)\n");
|
||||
kprintf("0)\n");
|
||||
#endif
|
||||
return(0);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: adutil.c,v 1.13 1996/10/08 22:18:03 thorpej Exp $ */
|
||||
/* $NetBSD: adutil.c,v 1.14 1996/10/10 17:47:30 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Christian E. Hopps
|
||||
@ -99,8 +99,8 @@ adosfs_getblktype(amp, bp)
|
||||
{
|
||||
if (adoscksum(bp, amp->nwords)) {
|
||||
#ifdef DIAGNOSTIC
|
||||
printf("adosfs: aget: cksum of blk %ld failed\n",
|
||||
bp->b_blkno / amp->secsperblk);
|
||||
kprintf("adosfs: aget: cksum of blk %ld failed\n",
|
||||
bp->b_blkno / amp->secsperblk);
|
||||
#endif
|
||||
return (-1);
|
||||
}
|
||||
@ -110,8 +110,8 @@ adosfs_getblktype(amp, bp)
|
||||
*/
|
||||
if (adoswordn(bp, 0) != BPT_SHORT) {
|
||||
#ifdef DIAGNOSTIC
|
||||
printf("adosfs: aget: bad primary type blk %ld\n",
|
||||
bp->b_blkno / amp->secsperblk);
|
||||
kprintf("adosfs: aget: bad primary type blk %ld\n",
|
||||
bp->b_blkno / amp->secsperblk);
|
||||
#endif
|
||||
return (-1);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: advfsops.c,v 1.20 1996/10/08 22:18:04 thorpej Exp $ */
|
||||
/* $NetBSD: advfsops.c,v 1.21 1996/10/10 17:47:31 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Christian E. Hopps
|
||||
@ -452,7 +452,7 @@ adosfs_vget(mp, an, vpp)
|
||||
namlen = *(u_char *)nam++;
|
||||
if (namlen > 30) {
|
||||
#ifdef DIAGNOSTIC
|
||||
printf("adosfs: aget: name length too long blk %d\n", an);
|
||||
kprintf("adosfs: aget: name length too long blk %d\n", an);
|
||||
#endif
|
||||
brelse(bp);
|
||||
vput(vp);
|
||||
@ -580,8 +580,8 @@ adosfs_loadbitmap(amp)
|
||||
break;
|
||||
if (adoscksum(mapbp, amp->nwords)) {
|
||||
#ifdef DIAGNOSTIC
|
||||
printf("adosfs: loadbitmap - cksum of blk %d failed\n",
|
||||
adoswordn(bp, blkix));
|
||||
kprintf("adosfs: loadbitmap - cksum of blk %ld failed\n",
|
||||
adoswordn(bp, blkix));
|
||||
#endif
|
||||
/* XXX Force read-only? Set free space 0? */
|
||||
break;
|
||||
@ -656,7 +656,7 @@ adosfs_fhtovp(mp, fhp, nam, vpp, exflagsp, credanonp)
|
||||
int error;
|
||||
|
||||
#ifdef ADOSFS_DIAGNOSTIC
|
||||
printf("adfhtovp(%x, %x, %x)\n", mp, fhp, vpp);
|
||||
kprintf("adfhtovp(%x, %x, %x)\n", mp, fhp, vpp);
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -699,7 +699,7 @@ adosfs_vptofh(vp, fhp)
|
||||
ifhp->ifid_start = ap->block;
|
||||
|
||||
#ifdef ADOSFS_DIAGNOSTIC
|
||||
printf("advptofh(%x, %x)\n", vp, fhp);
|
||||
kprintf("advptofh(%x, %x)\n", vp, fhp);
|
||||
#endif
|
||||
return(0);
|
||||
}
|
||||
@ -723,7 +723,7 @@ adosfs_sync(mp, waitfor, uc, p)
|
||||
struct proc *p;
|
||||
{
|
||||
#ifdef ADOSFS_DIAGNOSTIC
|
||||
printf("ad_sync(%x, %x)\n", mp, waitfor);
|
||||
kprintf("ad_sync(%x, %x)\n", mp, waitfor);
|
||||
#endif
|
||||
return(0);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: advnops.c,v 1.30 1996/09/07 12:40:22 mycroft Exp $ */
|
||||
/* $NetBSD: advnops.c,v 1.31 1996/10/10 17:47:32 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Christian E. Hopps
|
||||
@ -206,7 +206,7 @@ adosfs_getattr(v)
|
||||
vap->va_blocksize = amp->dbsize;
|
||||
}
|
||||
#ifdef ADOSFS_DIAGNOSTIC
|
||||
printf(" 0)");
|
||||
kprintf(" 0)");
|
||||
#endif
|
||||
return(0);
|
||||
}
|
||||
@ -294,15 +294,15 @@ adosfs_read(v)
|
||||
error = EIO; /* OFS needs the complete block */
|
||||
else if (adoswordn(bp, 0) != BPT_DATA) {
|
||||
#ifdef DIAGNOSTIC
|
||||
printf("adosfs: bad primary type blk %ld\n",
|
||||
bp->b_blkno / amp->secsperblk);
|
||||
kprintf("adosfs: bad primary type blk %ld\n",
|
||||
bp->b_blkno / amp->secsperblk);
|
||||
#endif
|
||||
error=EINVAL;
|
||||
}
|
||||
else if ( adoscksum(bp, ap->nwords)) {
|
||||
#ifdef DIAGNOSTIC
|
||||
printf("adosfs: blk %ld failed cksum.\n",
|
||||
bp->b_blkno / amp->secsperblk);
|
||||
kprintf("adosfs: blk %ld failed cksum.\n",
|
||||
bp->b_blkno / amp->secsperblk);
|
||||
#endif
|
||||
error=EINVAL;
|
||||
}
|
||||
@ -313,7 +313,7 @@ adosfs_read(v)
|
||||
goto reterr;
|
||||
}
|
||||
#ifdef ADOSFS_DIAGNOSTIC
|
||||
printf(" %d+%d-%d+%d", lbn, on, lbn, n);
|
||||
kprintf(" %d+%d-%d+%d", lbn, on, lbn, n);
|
||||
#endif
|
||||
n = min(n, (u_int)size - bp->b_resid);
|
||||
error = uiomove(bp->b_un.b_addr + on +
|
||||
@ -322,7 +322,7 @@ adosfs_read(v)
|
||||
} while (error == 0 && uio->uio_resid > 0 && n != 0);
|
||||
reterr:
|
||||
#ifdef ADOSFS_DIAGNOSTIC
|
||||
printf(" %d)", error);
|
||||
kprintf(" %d)", error);
|
||||
#endif
|
||||
return(error);
|
||||
}
|
||||
@ -339,7 +339,7 @@ adosfs_write(v)
|
||||
struct ucred *a_cred;
|
||||
} */ *sp = v;
|
||||
advopprint(sp);
|
||||
printf(" EOPNOTSUPP)");
|
||||
kprintf(" EOPNOTSUPP)");
|
||||
#endif
|
||||
return(EOPNOTSUPP);
|
||||
}
|
||||
@ -362,7 +362,7 @@ adosfs_ioctl(v)
|
||||
struct proc *a_p;
|
||||
} */ *sp = v;
|
||||
advopprint(sp);
|
||||
printf(" ENOTTY)");
|
||||
kprintf(" ENOTTY)");
|
||||
#endif
|
||||
return(ENOTTY);
|
||||
}
|
||||
@ -413,7 +413,7 @@ adosfs_strategy(v)
|
||||
VOCALL(vp->v_op, VOFFSET(vop_strategy), sp);
|
||||
reterr:
|
||||
#ifdef ADOSFS_DIAGNOSTIC
|
||||
printf(" %d)", error);
|
||||
kprintf(" %d)", error);
|
||||
#endif
|
||||
return(error);
|
||||
}
|
||||
@ -482,7 +482,7 @@ start:
|
||||
}
|
||||
ap->flags |= ALOCKED;
|
||||
#ifdef ADOSFS_DIAGNOSTIC
|
||||
printf(" 0)");
|
||||
kprintf(" 0)");
|
||||
#endif
|
||||
return(0);
|
||||
}
|
||||
@ -510,7 +510,7 @@ adosfs_unlock(v)
|
||||
}
|
||||
|
||||
#ifdef ADOSFS_DIAGNOSTIC
|
||||
printf(" 0)");
|
||||
kprintf(" 0)");
|
||||
#endif
|
||||
return(0);
|
||||
}
|
||||
@ -589,7 +589,7 @@ adosfs_bmap(v)
|
||||
brelse(flbp);
|
||||
if (nb == 0) {
|
||||
#ifdef DIAGNOSTIC
|
||||
printf("adosfs: bad file list chain.\n");
|
||||
kprintf("adosfs: bad file list chain.\n");
|
||||
#endif
|
||||
error = EINVAL;
|
||||
goto reterr;
|
||||
@ -600,7 +600,7 @@ adosfs_bmap(v)
|
||||
goto reterr;
|
||||
if (adoscksum(flbp, ap->nwords)) {
|
||||
#ifdef DIAGNOSTIC
|
||||
printf("adosfs: blk %ld failed cksum.\n", nb);
|
||||
kprintf("adosfs: blk %ld failed cksum.\n", nb);
|
||||
#endif
|
||||
brelse(flbp);
|
||||
error = EINVAL;
|
||||
@ -626,7 +626,7 @@ adosfs_bmap(v)
|
||||
*bnp = adoswordn(flbp, flblkoff) * ap->amp->secsperblk;
|
||||
} else {
|
||||
#ifdef DIAGNOSTIC
|
||||
printf("flblk offset %ld too large in lblk %ld blk %d\n",
|
||||
kprintf("flblk offset %ld too large in lblk %ld blk %d\n",
|
||||
flblkoff, bn / ap->amp->secsperblk , flbp->b_blkno);
|
||||
#endif
|
||||
error = EINVAL;
|
||||
@ -635,8 +635,8 @@ adosfs_bmap(v)
|
||||
reterr:
|
||||
#ifdef ADOSFS_DIAGNOSTIC
|
||||
if (error == 0 && bnp)
|
||||
printf(" %d => %d", bn, *bnp);
|
||||
printf(" %d)", error);
|
||||
kprintf(" %d => %d", bn, *bnp);
|
||||
kprintf(" %d)", error);
|
||||
#endif
|
||||
return(error);
|
||||
}
|
||||
@ -820,7 +820,7 @@ adosfs_readdir(v)
|
||||
#endif
|
||||
reterr:
|
||||
#ifdef ADOSFS_DIAGNOSTIC
|
||||
printf(" %d)", error);
|
||||
kprintf(" %d)", error);
|
||||
#endif
|
||||
return(error);
|
||||
}
|
||||
@ -855,7 +855,7 @@ adosfs_access(v)
|
||||
error = vaccess(adunixprot(ap->adprot) & ap->amp->mask, ap->uid,
|
||||
ap->gid, sp->a_mode, sp->a_cred);
|
||||
#ifdef ADOSFS_DIAGNOSTIC
|
||||
printf(" %d)", error);
|
||||
kprintf(" %d)", error);
|
||||
#endif
|
||||
return(error);
|
||||
}
|
||||
@ -886,7 +886,7 @@ adosfs_readlink(v)
|
||||
if (error == 0)
|
||||
error = uiomove(ap->slinkto, strlen(ap->slinkto)+1, sp->a_uio);
|
||||
#ifdef ADOSFS_DIAGNOSTIC
|
||||
printf(" %d)", error);
|
||||
kprintf(" %d)", error);
|
||||
#endif
|
||||
return(error);
|
||||
}
|
||||
@ -906,7 +906,7 @@ adosfs_inactive(v)
|
||||
vgone(sp->a_vp);
|
||||
|
||||
#ifdef ADOSFS_DIAGNOSTIC
|
||||
printf(" 0)");
|
||||
kprintf(" 0)");
|
||||
#endif
|
||||
return(0);
|
||||
}
|
||||
@ -927,7 +927,7 @@ adosfs_islocked(v)
|
||||
locked = (VTOA(sp->a_vp)->flags & ALOCKED) == ALOCKED;
|
||||
|
||||
#ifdef ADOSFS_DIAGNOSTIC
|
||||
printf(" %d)", locked);
|
||||
kprintf(" %d)", locked);
|
||||
#endif
|
||||
return(locked);
|
||||
}
|
||||
@ -947,7 +947,7 @@ adosfs_reclaim(v)
|
||||
struct anode *ap;
|
||||
|
||||
#ifdef ADOSFS_DIAGNOSTIC
|
||||
printf("(reclaim 0)");
|
||||
kprintf("(reclaim 0)");
|
||||
#endif
|
||||
vp = sp->a_vp;
|
||||
ap = VTOA(vp);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: tty_43.c,v 1.5 1996/05/20 14:29:17 mark Exp $ */
|
||||
/* $NetBSD: tty_43.c,v 1.6 1996/10/10 17:51:52 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1991, 1993
|
||||
@ -221,7 +221,7 @@ ttcompat(tp, com, data, flag, p)
|
||||
case TIOCLGET:
|
||||
*(int *)data = ttcompatgetflags(tp)>>16;
|
||||
if (ttydebug)
|
||||
printf("CLGET: returning %x\n", *(int *)data);
|
||||
kprintf("CLGET: returning %x\n", *(int *)data);
|
||||
break;
|
||||
|
||||
case OTIOCGETD:
|
||||
@ -320,7 +320,7 @@ ttcompatgetflags(tp)
|
||||
SET(flags, DECCTQ);
|
||||
SET(flags, ISSET(lflag, ECHO|TOSTOP|FLUSHO|PENDIN|NOFLSH));
|
||||
if (ttydebug)
|
||||
printf("getflags: %x\n", flags);
|
||||
kprintf("getflags: %x\n", flags);
|
||||
return (flags);
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: hpux_util.h,v 1.3 1995/12/08 07:45:34 thorpej Exp $ */
|
||||
/* $NetBSD: hpux_util.h,v 1.4 1996/10/10 17:51:53 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Christos Zoulas
|
||||
@ -41,7 +41,7 @@ extern const char hpux_emul_path[];
|
||||
CHECK_ALT_CREAT(p, sgp, hpux_emul_path, path)
|
||||
|
||||
#ifdef DEBUG_HPUX
|
||||
#define DPRINTF(a) printf a;
|
||||
#define DPRINTF(a) kprintf a;
|
||||
#else
|
||||
#define DPRINTF(a)
|
||||
#endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ibcs2_socksys.c,v 1.5 1996/06/23 11:17:50 mycroft Exp $ */
|
||||
/* $NetBSD: ibcs2_socksys.c,v 1.6 1996/10/10 17:51:54 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995 Scott Bartram
|
||||
@ -129,9 +129,9 @@ ibcs2_socksys(p, v, retval)
|
||||
return sys_setitimer(p, realargs + 1, retval);
|
||||
|
||||
default:
|
||||
printf("socksys unknown %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
realargs[0], realargs[1], realargs[2], realargs[3],
|
||||
realargs[4], realargs[5], realargs[6]);
|
||||
kprintf("socksys unknown %08x %08x %08x %08x %08x %08x %08x\n",
|
||||
realargs[0], realargs[1], realargs[2], realargs[3],
|
||||
realargs[4], realargs[5], realargs[6]);
|
||||
return EINVAL;
|
||||
}
|
||||
/* NOTREACHED */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ibcs2_util.h,v 1.2 1995/06/24 20:19:06 christos Exp $ */
|
||||
/* $NetBSD: ibcs2_util.h,v 1.3 1996/10/10 17:51:55 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Christos Zoulas
|
||||
@ -36,7 +36,7 @@
|
||||
#include <compat/common/compat_util.h>
|
||||
|
||||
#ifdef DEBUG_IBCS2
|
||||
#define DPRINTF(a) printf a;
|
||||
#define DPRINTF(a) kprintf a;
|
||||
#else
|
||||
#define DPRINTF(a)
|
||||
#endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_exec.c,v 1.23 1996/10/07 21:47:33 cgd Exp $ */
|
||||
/* $NetBSD: linux_exec.c,v 1.24 1996/10/10 17:51:56 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
@ -40,7 +40,6 @@
|
||||
#include <sys/namei.h>
|
||||
#include <sys/vnode.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/exec.h>
|
||||
#include <sys/exec_elf.h>
|
||||
|
||||
#include <sys/mman.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_exec_aout.c,v 1.23 1996/10/07 21:47:33 cgd Exp $ */
|
||||
/* $NetBSD: linux_exec_aout.c,v 1.24 1996/10/10 17:51:56 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
@ -40,7 +40,6 @@
|
||||
#include <sys/namei.h>
|
||||
#include <sys/vnode.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/exec.h>
|
||||
#include <sys/exec_elf.h>
|
||||
|
||||
#include <sys/mman.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_exec_elf32.c,v 1.23 1996/10/07 21:47:33 cgd Exp $ */
|
||||
/* $NetBSD: linux_exec_elf32.c,v 1.24 1996/10/10 17:51:56 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
@ -40,7 +40,6 @@
|
||||
#include <sys/namei.h>
|
||||
#include <sys/vnode.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/exec.h>
|
||||
#include <sys/exec_elf.h>
|
||||
|
||||
#include <sys/mman.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_file.c,v 1.15 1996/05/20 01:59:09 fvdl Exp $ */
|
||||
/* $NetBSD: linux_file.c,v 1.16 1996/10/10 17:51:57 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
@ -815,8 +815,10 @@ linux_sys_fdatasync(p, v, retval)
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
#ifdef notdef
|
||||
struct linux_sys_fdatasync_args /* {
|
||||
syscallarg(int) fd;
|
||||
} */ *uap = v;
|
||||
#endif
|
||||
return sys_fsync(p, v, retval);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_llseek.c,v 1.15 1996/05/20 01:59:09 fvdl Exp $ */
|
||||
/* $NetBSD: linux_llseek.c,v 1.16 1996/10/10 17:51:57 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
@ -815,8 +815,10 @@ linux_sys_fdatasync(p, v, retval)
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
#ifdef notdef
|
||||
struct linux_sys_fdatasync_args /* {
|
||||
syscallarg(int) fd;
|
||||
} */ *uap = v;
|
||||
#endif
|
||||
return sys_fsync(p, v, retval);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_exec.c,v 1.23 1996/10/07 21:47:33 cgd Exp $ */
|
||||
/* $NetBSD: linux_exec.c,v 1.24 1996/10/10 17:51:56 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
@ -40,7 +40,6 @@
|
||||
#include <sys/namei.h>
|
||||
#include <sys/vnode.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/exec.h>
|
||||
#include <sys/exec_elf.h>
|
||||
|
||||
#include <sys/mman.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_file.c,v 1.15 1996/05/20 01:59:09 fvdl Exp $ */
|
||||
/* $NetBSD: linux_file.c,v 1.16 1996/10/10 17:51:57 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
@ -815,8 +815,10 @@ linux_sys_fdatasync(p, v, retval)
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
#ifdef notdef
|
||||
struct linux_sys_fdatasync_args /* {
|
||||
syscallarg(int) fd;
|
||||
} */ *uap = v;
|
||||
#endif
|
||||
return sys_fsync(p, v, retval);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_llseek.c,v 1.15 1996/05/20 01:59:09 fvdl Exp $ */
|
||||
/* $NetBSD: linux_llseek.c,v 1.16 1996/10/10 17:51:57 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
@ -815,8 +815,10 @@ linux_sys_fdatasync(p, v, retval)
|
||||
void *v;
|
||||
register_t *retval;
|
||||
{
|
||||
#ifdef notdef
|
||||
struct linux_sys_fdatasync_args /* {
|
||||
syscallarg(int) fd;
|
||||
} */ *uap = v;
|
||||
#endif
|
||||
return sys_fsync(p, v, retval);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: osf1_ioctl.c,v 1.3 1995/10/07 06:27:19 mycroft Exp $ */
|
||||
/* $NetBSD: osf1_ioctl.c,v 1.4 1996/10/10 17:51:58 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
|
||||
@ -116,7 +116,7 @@ osf1_sys_ioctl(p, v, retval)
|
||||
}
|
||||
#ifdef SYSCALL_DEBUG
|
||||
if (scdebug)
|
||||
printf(
|
||||
kprintf(
|
||||
"OSF/1 IOCTL: group = %c, cmd = %d, len = %d, dir = %s\n",
|
||||
group, cmd, len, dirstr);
|
||||
#endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: osf1_misc.c,v 1.9 1996/09/03 03:12:31 mycroft Exp $ */
|
||||
/* $NetBSD: osf1_misc.c,v 1.10 1996/10/10 17:51:59 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
|
||||
@ -96,7 +96,7 @@ osf1_sys_open(p, v, retval)
|
||||
|
||||
if (scdebug &&
|
||||
copyinstr(SCARG(uap, path), pnbuf, sizeof pnbuf, NULL) == 0)
|
||||
printf("osf1_open: open: %s\n", pnbuf);
|
||||
kprintf("osf1_open: open: %s\n", pnbuf);
|
||||
#endif
|
||||
|
||||
SCARG(&a, path) = SCARG(uap, path);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: svr4_exec.c,v 1.21 1996/10/07 21:47:34 cgd Exp $ */
|
||||
/* $NetBSD: svr4_exec.c,v 1.22 1996/10/10 17:52:01 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Christos Zoulas
|
||||
@ -36,7 +36,6 @@
|
||||
#include <sys/malloc.h>
|
||||
#include <sys/namei.h>
|
||||
#include <sys/vnode.h>
|
||||
#include <sys/exec.h>
|
||||
#include <sys/exec_elf.h>
|
||||
|
||||
#include <sys/mman.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ultrix_fs.c,v 1.4 1996/04/07 17:23:06 jonathan Exp $ */
|
||||
/* $NetBSD: ultrix_fs.c,v 1.5 1996/10/10 17:52:02 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995
|
||||
@ -182,8 +182,8 @@ make_ultrix_mntent(sp, tem)
|
||||
strncpy(tem->ufsd_devname, sp->f_mntfromname, ULTRIX_MAXPATHLEN);
|
||||
#if 0
|
||||
/* In NetBSD-1.1, filesystem type is unused and always 0 */
|
||||
printf("mntent: %s type %d\n", tem->ufsd_devname, tem->ufsd_fstype);
|
||||
printf("mntent: %s tot %d free %d user%d\n",
|
||||
kprintf("mntent: %s type %d\n", tem->ufsd_devname, tem->ufsd_fstype);
|
||||
kprintf("mntent: %s tot %d free %d user%d\n",
|
||||
tem->ufsd_devname, sp->f_blocks, sp->f_bfree, sp->f_bavail);
|
||||
#endif
|
||||
}
|
||||
@ -393,8 +393,8 @@ ultrix_sys_mount(p, v, retval)
|
||||
return(error);
|
||||
if (strcmp(fsname, "/") == 0) {
|
||||
SCARG(&nuap, flags) |= MNT_UPDATE;
|
||||
printf("COMPAT_ULTRIX: mount with MNT_UPDATE on %s\n",
|
||||
fsname);
|
||||
kprintf("COMPAT_ULTRIX: mount with MNT_UPDATE on %s\n",
|
||||
fsname);
|
||||
}
|
||||
} else if (otype == ULTRIX_FSTYPE_NFS) {
|
||||
struct ultrix_nfs_args una;
|
||||
@ -413,7 +413,7 @@ ultrix_sys_mount(p, v, retval)
|
||||
* compatibility on 4.3style sockaddrs here.
|
||||
*/
|
||||
if ((error = copyin(una.addr, &osa, sizeof osa)) != 0) {
|
||||
printf("ultrix_mount: nfs copyin osa\n");
|
||||
kprintf("ultrix_mount: nfs copyin osa\n");
|
||||
return (error);
|
||||
}
|
||||
sap->sin_family = (u_char)osa.sin_family;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ultrix_ioctl.c,v 1.5 1996/10/09 00:49:40 thorpej Exp $ */
|
||||
/* $NetBSD: ultrix_ioctl.c,v 1.6 1996/10/10 17:52:03 christos Exp $ */
|
||||
/* from : NetBSD: sunos_ioctl.c,v 1.21 1995/10/07 06:27:31 mycroft Exp */
|
||||
|
||||
/*
|
||||
@ -592,8 +592,8 @@ ultrix_sys_ioctl(p, v, retval)
|
||||
#else
|
||||
result= (*ctl)(fp, ULTRIX_TCSETA - SCARG(uap, com) + TIOCSETA,
|
||||
(caddr_t)&bts, p);
|
||||
printf("ultrix TCSETA %lx returns %d\n",
|
||||
ULTRIX_TCSETA - SCARG(uap, com), result);
|
||||
kprintf("ultrix TCSETA %lx returns %d\n",
|
||||
ULTRIX_TCSETA - SCARG(uap, com), result);
|
||||
return result;
|
||||
#endif
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ultrix_misc.c,v 1.25 1996/08/10 09:10:40 mycroft Exp $ */
|
||||
/* $NetBSD: ultrix_misc.c,v 1.26 1996/10/10 17:52:04 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995
|
||||
@ -264,15 +264,15 @@ ultrix_sys_select(p, v, retval)
|
||||
#ifdef DEBUG
|
||||
/* Ultrix clients sometimes give negative timeouts? */
|
||||
if (atv.tv_sec < 0 || atv.tv_usec < 0)
|
||||
printf("ultrix select( %ld, %ld): negative timeout\n",
|
||||
atv.tv_sec, atv.tv_usec);
|
||||
kprintf("ultrix select( %ld, %ld): negative timeout\n",
|
||||
atv.tv_sec, atv.tv_usec);
|
||||
/*tvp = (timeval *)STACKGAPBASE;*/
|
||||
#endif
|
||||
|
||||
}
|
||||
error = sys_select(p, (void*) uap, retval);
|
||||
if (error == EINVAL)
|
||||
printf("ultrix select: bad args?\n");
|
||||
kprintf("ultrix select: bad args?\n");
|
||||
|
||||
done:
|
||||
return error;
|
||||
@ -573,7 +573,7 @@ ultrix_sys_sigreturn(p, v, retval)
|
||||
struct ultrix_sys_sigcleanup_args *uap = v;
|
||||
|
||||
#ifdef DEBUG
|
||||
printf("ultrix sigreturn\n");
|
||||
kprintf("ultrix sigreturn\n");
|
||||
#endif
|
||||
return sys_sigreturn(p, (struct sys_sigreturn_args *)uap, retval);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: db_aout.c,v 1.14 1996/02/27 20:54:43 gwr Exp $ */
|
||||
/* $NetBSD: db_aout.c,v 1.15 1996/10/10 17:56:44 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Mach Operating System
|
||||
@ -78,7 +78,7 @@ X_db_sym_init(symtab, esymtab, name)
|
||||
|
||||
#ifdef SYMTAB_SPACE
|
||||
if (*symtab < sizeof(int)) {
|
||||
printf ("DDB: no symbols\n");
|
||||
kprintf ("DDB: no symbols\n");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
@ -94,10 +94,10 @@ X_db_sym_init(symtab, esymtab, name)
|
||||
slen = *(int *)strtab;
|
||||
|
||||
#ifdef SYMTAB_SPACE
|
||||
printf("DDB: found symbols [%d + %d bytes]\n",
|
||||
kprintf("DDB: found symbols [%d + %d bytes]\n",
|
||||
*symtab, slen);
|
||||
if ((*symtab + slen) > db_symtabsize) {
|
||||
printf("DDB: symbols larger than SYMTAB_SPACE?\n");
|
||||
kprintf("DDB: symbols larger than SYMTAB_SPACE?\n");
|
||||
return;
|
||||
}
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user