Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libsa Correct recently exposed printf format problem.
details: https://anonhg.NetBSD.org/src/rev/df2e2e80fde0
branches: trunk
changeset: 760044:df2e2e80fde0
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sat Dec 25 01:08:44 2010 +0000
description:
Correct recently exposed printf format problem.
diffstat:
sys/lib/libsa/alloc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r fc94dd1e5827 -r df2e2e80fde0 sys/lib/libsa/alloc.c
--- a/sys/lib/libsa/alloc.c Sat Dec 25 01:08:36 2010 +0000
+++ b/sys/lib/libsa/alloc.c Sat Dec 25 01:08:44 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: alloc.c,v 1.23 2007/12/02 04:59:24 tsutsui Exp $ */
+/* $NetBSD: alloc.c,v 1.24 2010/12/25 01:08:44 jakllsch Exp $ */
/*
* Copyright (c) 1993
@@ -214,7 +214,7 @@
top += ALIGN(sizeof(unsigned int)) + ALIGN(size);
#ifdef HEAP_LIMIT
if (top > (char *)HEAP_LIMIT)
- panic("heap full (0x%lx+%zu)", help, size);
+ panic("heap full (%p+%zu)", help, size);
#endif
*(unsigned int *)(void *)help = (unsigned int)ALIGN(size);
#ifdef ALLOC_TRACE
Home |
Main Index |
Thread Index |
Old Index