Fixed debug printf format args.

This commit is contained in:
christos 1996-03-30 22:37:52 +00:00
parent 036d834ee8
commit 6c2fd36998
8 changed files with 25 additions and 25 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_filio.c,v 1.3 1995/10/07 06:27:40 mycroft Exp $ */
/* $NetBSD: svr4_filio.c,v 1.4 1996/03/30 22:37:52 christos Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
@ -104,7 +104,7 @@ svr4_filioctl(fp, cmd, data, p, retval)
return copyout(&num, data, sizeof(num));
default:
DPRINTF(("Unknown svr4 filio %x\n", cmd));
DPRINTF(("Unknown svr4 filio %lx\n", cmd));
return 0; /* ENOSYS really */
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_ioctl.c,v 1.14 1996/02/10 00:48:08 christos Exp $ */
/* $NetBSD: svr4_ioctl.c,v 1.15 1996/03/30 22:37:57 christos Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
@ -130,7 +130,7 @@ svr4_sys_ioctl(p, v, retval)
return svr4_sockioctl(fp, cmd, SCARG(uap, data), p, retval);
default:
DPRINTF(("Unimplemented ioctl %x\n", cmd));
DPRINTF(("Unimplemented ioctl %lx\n", cmd));
return 0; /* XXX: really ENOSYS */
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_misc.c,v 1.35 1996/02/10 17:12:31 christos Exp $ */
/* $NetBSD: svr4_misc.c,v 1.36 1996/03/30 22:38:02 christos Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
@ -583,7 +583,7 @@ svr4_sys_break(p, v, retval)
new = round_page(SCARG(uap, nsize));
diff = new - old;
DPRINTF(("break(1): old %x new %x diff %x\n", old, new, diff));
DPRINTF(("break(1): old %lx new %lx diff %x\n", old, new, diff));
if (diff > p->p_rlimit[RLIMIT_DATA].rlim_cur)
return ENOMEM;
@ -593,7 +593,7 @@ svr4_sys_break(p, v, retval)
vm->vm_dsize, ctob(vm->vm_dsize)));
diff = new - old;
DPRINTF(("break(3): old %x new %x diff %x\n", old, new, diff));
DPRINTF(("break(3): old %lx new %lx diff %x\n", old, new, diff));
if (diff > 0) {
rv = vm_allocate(&vm->vm_map, &old, diff, FALSE);
@ -934,7 +934,7 @@ svr4_setinfo(p, st, s)
i.si_code = SVR4_CLD_KILLED;
}
DPRINTF(("siginfo [pid %d signo %d code %d errno %d status %d]\n",
DPRINTF(("siginfo [pid %ld signo %d code %d errno %d status %d]\n",
i.si_pid, i.si_signo, i.si_code, i.si_errno, i.si_status));
return copyout(&i, s, sizeof(i));

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_signal.c,v 1.22 1996/03/16 23:20:30 christos Exp $ */
/* $NetBSD: svr4_signal.c,v 1.23 1996/03/30 22:38:07 christos Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
* All rights reserved.
@ -630,19 +630,19 @@ svr4_sys_context(p, v, retval)
switch (SCARG(uap, func)) {
case 0:
DPRINTF(("getcontext(%x)\n", SCARG(uap, uc)));
DPRINTF(("getcontext(%p)\n", SCARG(uap, uc)));
svr4_getcontext(p, &uc, p->p_sigmask,
p->p_sigacts->ps_sigstk.ss_flags & SS_ONSTACK);
return copyout(&uc, SCARG(uap, uc), sizeof(uc));
case 1:
DPRINTF(("setcontext(%x)\n", SCARG(uap, uc)));
DPRINTF(("setcontext(%p)\n", SCARG(uap, uc)));
if ((error = copyin(SCARG(uap, uc), &uc, sizeof(uc))) != 0)
return error;
return svr4_setcontext(p, &uc);
default:
DPRINTF(("context(%d, %x)\n", SCARG(uap, func),
DPRINTF(("context(%d, %p)\n", SCARG(uap, func),
SCARG(uap, uc)));
return ENOSYS;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_sockio.c,v 1.6 1996/02/09 23:12:20 christos Exp $ */
/* $NetBSD: svr4_sockio.c,v 1.7 1996/03/30 22:38:14 christos Exp $ */
/*
* Copyright (c) 1995 Christos Zoulas
@ -134,7 +134,7 @@ svr4_sockioctl(fp, cmd, data, p, retval)
default:
DPRINTF(("Unknown svr4 sockio %x\n", cmd));
DPRINTF(("Unknown svr4 sockio %lx\n", cmd));
return 0; /* ENOSYS really */
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_stream.c,v 1.11 1996/02/10 00:48:12 christos Exp $ */
/* $NetBSD: svr4_stream.c,v 1.12 1996/03/30 22:38:19 christos Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
@ -227,7 +227,7 @@ svr4_sockmod(fp, ioc, p)
return 0;
default:
DPRINTF(("Unknown sockmod ioctl %x\n", ioc->cmd));
DPRINTF(("Unknown sockmod ioctl %lx\n", ioc->cmd));
return 0;
}
@ -323,7 +323,7 @@ svr4_timod(fp, ioc, p)
return 0;
default:
DPRINTF(("Unknown timod ioctl %x\n", ioc->cmd));
DPRINTF(("Unknown timod ioctl %lx\n", ioc->cmd));
return 0;
}
}
@ -339,7 +339,7 @@ svr4_showioc(str, ioc)
int error;
int i;
printf("%s cmd = %d, timeout = %d, len = %d, buf = %p { ",
printf("%s cmd = %ld, timeout = %d, len = %d, buf = %p { ",
str, ioc->cmd, ioc->timeout, ioc->len, ioc->buf);
if ((error = copyin(ioc->buf, ptr, ioc->len)) != 0) {
@ -429,7 +429,7 @@ svr4_streamioctl(fp, cmd, dat, p, retval)
break;
default:
DPRINTF(("Unimplemented module %c %d\n",
DPRINTF(("Unimplemented module %c %ld\n",
(char) (cmd >> 8), cmd & 0xff));
return 0;
}
@ -550,7 +550,7 @@ svr4_streamioctl(fp, cmd, dat, p, retval)
return 0;
default:
DPRINTF(("unimpl cmd = %x\n", cmd));
DPRINTF(("unimpl cmd = %lx\n", cmd));
break;
}
@ -750,7 +750,7 @@ svr4_sys_putmsg(p, v, retval)
return error;
}
default:
DPRINTF(("putmsg: Unimplemented command %x\n", sc.cmd));
DPRINTF(("putmsg: Unimplemented command %lx\n", sc.cmd));
return ENOSYS;
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_termios.c,v 1.7 1996/03/14 19:29:14 christos Exp $ */
/* $NetBSD: svr4_termios.c,v 1.8 1996/03/30 22:38:23 christos Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
@ -561,7 +561,7 @@ svr4_termioctl(fp, cmd, data, p, retval)
}
default:
DPRINTF(("Unknown svr4 termios %x\n", cmd));
DPRINTF(("Unknown svr4 termios %lx\n", cmd));
return ENOSYS;
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_ttold.c,v 1.7 1995/10/14 20:25:01 christos Exp $ */
/* $NetBSD: svr4_ttold.c,v 1.8 1996/03/30 22:38:27 christos Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
@ -282,7 +282,7 @@ svr4_ttoldioctl(fp, cmd, data, p, retval)
}
default:
DPRINTF(("Unknown svr4 ttold %x\n", cmd));
DPRINTF(("Unknown svr4 ttold %lx\n", cmd));
return 0; /* ENOSYS really */
}
}