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.42 (via patch, requested ...



details:   https://anonhg.NetBSD.org/src/rev/08f13515397c
branches:  netbsd-1-4
changeset: 470951:08f13515397c
user:      he <he%NetBSD.org@localhost>
date:      Sun Oct 08 15:32:18 2000 +0000

description:
Pull up revision 1.42 (via patch, requested by he):
  Fix compilation problem after format string audit fixes.

diffstat:

 lib/libkvm/kvm_proc.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 188fb07939f3 -r 08f13515397c lib/libkvm/kvm_proc.c
--- a/lib/libkvm/kvm_proc.c     Sat Oct 07 21:11:28 2000 +0000
+++ b/lib/libkvm/kvm_proc.c     Sun Oct 08 15:32:18 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kvm_proc.c,v 1.30.2.1 2000/10/04 16:26:46 he Exp $     */
+/*     $NetBSD: kvm_proc.c,v 1.30.2.2 2000/10/08 15:32:18 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.2.1 2000/10/04 16:26:46 he Exp $");
+__RCSID("$NetBSD: kvm_proc.c,v 1.30.2.2 2000/10/08 15:32:18 he Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -436,8 +436,9 @@
                }
                if (size % sizeof(struct kinfo_proc) != 0) {
                        _kvm_err(kd, kd->program,
-                               "proc size mismatch (%d total, %d chunks)",
-                               size, sizeof(struct kinfo_proc));
+                                "proc size mismatch (%lu total, %lu chunks)",
+                                (u_long)size,
+                                (u_long)sizeof(struct kinfo_proc));
                        return (0);
                }
                nprocs = size / sizeof(struct kinfo_proc);



Home | Main Index | Thread Index | Old Index