Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern A nit I ran into while copying this code for someth...
details: https://anonhg.NetBSD.org/src/rev/b3d04825737d
branches: trunk
changeset: 552590:b3d04825737d
user: mycroft <mycroft%NetBSD.org@localhost>
date: Sat Sep 27 23:10:47 2003 +0000
description:
A nit I ran into while copying this code for something else...
diffstat:
sys/kern/kern_malloc.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r 79bd8493273f -r b3d04825737d sys/kern/kern_malloc.c
--- a/sys/kern/kern_malloc.c Sat Sep 27 21:43:29 2003 +0000
+++ b/sys/kern/kern_malloc.c Sat Sep 27 23:10:47 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_malloc.c,v 1.87 2003/09/23 16:36:59 thorpej Exp $ */
+/* $NetBSD: kern_malloc.c,v 1.88 2003/09/27 23:10:47 mycroft Exp $ */
/*
* Copyright (c) 1987, 1991, 1993
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_malloc.c,v 1.87 2003/09/23 16:36:59 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_malloc.c,v 1.88 2003/09/27 23:10:47 mycroft Exp $");
#include "opt_lockdebug.h"
@@ -158,8 +158,8 @@
long l;
#define PRT do { \
- if (malloclog[l].addr == a && malloclog[l].action) { \
- lp = &malloclog[l]; \
+ lp = &malloclog[l]; \
+ if (lp->addr == a && lp->action) { \
printf("malloc log entry %ld:\n", l); \
printf("\taddr = %p\n", lp->addr); \
printf("\tsize = %ld\n", lp->size); \
@@ -175,6 +175,7 @@
for (l = 0; l < malloclogptr; l++)
PRT;
+#undef PRT
}
#endif /* MALLOCLOG */
Home |
Main Index |
Thread Index |
Old Index