Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/lib/libkvm Pull up revision 1.41 (via patch, requested ...
details: https://anonhg.NetBSD.org/src/rev/f62ea1bdd225
branches: netbsd-1-4
changeset: 470935:f62ea1bdd225
user: he <he%NetBSD.org@localhost>
date: Wed Oct 04 16:26:46 2000 +0000
description:
Pull up revision 1.41 (via patch, requested by sommerfeld):
Format string audit.
diffstat:
lib/libkvm/kvm_proc.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diffs (79 lines):
diff -r 8e8d729968bf -r f62ea1bdd225 lib/libkvm/kvm_proc.c
--- a/lib/libkvm/kvm_proc.c Wed Oct 04 16:22:56 2000 +0000
+++ b/lib/libkvm/kvm_proc.c Wed Oct 04 16:26:46 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kvm_proc.c,v 1.30 1999/03/24 05:50:50 mrg Exp $ */
+/* $NetBSD: kvm_proc.c,v 1.30.2.1 2000/10/04 16:26:46 he Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
#if 0
static char sccsid[] = "@(#)kvm_proc.c 8.3 (Berkeley) 9/23/93";
#else
-__RCSID("$NetBSD: kvm_proc.c,v 1.30 1999/03/24 05:50:50 mrg Exp $");
+__RCSID("$NetBSD: kvm_proc.c,v 1.30.2.1 2000/10/04 16:26:46 he Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -244,14 +244,14 @@
for (; cnt < maxcnt && p != NULL; p = proc.p_list.le_next) {
if (KREAD(kd, (u_long)p, &proc)) {
- _kvm_err(kd, kd->program, "can't read proc at %x", p);
+ _kvm_err(kd, kd->program, "can't read proc at %p", p);
return (-1);
}
if (KREAD(kd, (u_long)proc.p_cred, &eproc.e_pcred) == 0)
if (KREAD(kd, (u_long)eproc.e_pcred.pc_ucred,
&eproc.e_ucred)) {
_kvm_err(kd, kd->program,
- "can't read proc credentials at %x", p);
+ "can't read proc credentials at %p", p);
return -1;
}
@@ -286,7 +286,7 @@
*/
eproc.e_paddr = p;
if (KREAD(kd, (u_long)proc.p_pgrp, &pgrp)) {
- _kvm_err(kd, kd->program, "can't read pgrp at %x",
+ _kvm_err(kd, kd->program, "can't read pgrp at %p",
proc.p_pgrp);
return (-1);
}
@@ -294,14 +294,14 @@
eproc.e_pgid = pgrp.pg_id;
eproc.e_jobc = pgrp.pg_jobc;
if (KREAD(kd, (u_long)pgrp.pg_session, &sess)) {
- _kvm_err(kd, kd->program, "can't read session at %x",
+ _kvm_err(kd, kd->program, "can't read session at %p",
pgrp.pg_session);
return (-1);
}
if ((proc.p_flag & P_CONTROLT) && sess.s_ttyp != NULL) {
if (KREAD(kd, (u_long)sess.s_ttyp, &tty)) {
_kvm_err(kd, kd->program,
- "can't read tty at %x", sess.s_ttyp);
+ "can't read tty at %p", sess.s_ttyp);
return (-1);
}
eproc.e_tdev = tty.t_dev;
@@ -309,7 +309,7 @@
if (tty.t_pgrp != NULL) {
if (KREAD(kd, (u_long)tty.t_pgrp, &pgrp)) {
_kvm_err(kd, kd->program,
- "can't read tpgrp at &x",
+ "can't read tpgrp at %p",
tty.t_pgrp);
return (-1);
}
@@ -750,7 +750,7 @@
dp = _kvm_uread(kd, p, uva, &cnt);
if (dp == 0) {
- _kvm_err(kd, 0, "invalid address (%x)", uva);
+ _kvm_err(kd, 0, "invalid address (%lx)", uva);
return (0);
}
cc = (size_t)MIN(cnt, len);
Home |
Main Index |
Thread Index |
Old Index