Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Use 'z' printf format modifier to print size_t in d...
details: https://anonhg.NetBSD.org/src/rev/4fb85bcec3f7
branches: trunk
changeset: 756650:4fb85bcec3f7
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Tue Jul 27 14:25:23 2010 +0000
description:
Use 'z' printf format modifier to print size_t in debug code.
diffstat:
sys/kern/kern_ksyms.c | 6 +++---
sys/kern/sysv_shm.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 50f1889c0329 -r 4fb85bcec3f7 sys/kern/kern_ksyms.c
--- a/sys/kern/kern_ksyms.c Tue Jul 27 14:04:55 2010 +0000
+++ b/sys/kern/kern_ksyms.c Tue Jul 27 14:25:23 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_ksyms.c,v 1.60 2010/05/04 14:14:54 tsutsui Exp $ */
+/* $NetBSD: kern_ksyms.c,v 1.61 2010/07/27 14:25:23 jakllsch Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_ksyms.c,v 1.60 2010/05/04 14:14:54 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_ksyms.c,v 1.61 2010/07/27 14:25:23 jakllsch Exp $");
#if defined(_KERNEL) && defined(_KERNEL_OPT)
#include "opt_ddb.h"
@@ -305,7 +305,7 @@
tab->sd_nmapsize = nsyms;
#endif
#ifdef KSYMS_DEBUG
- printf("newstart %p sym %p ksyms_symsz %d str %p strsz %d send %p\n",
+ printf("newstart %p sym %p ksyms_symsz %zu str %p strsz %zu send %p\n",
newstart, symstart, symsize, strstart, strsize,
tab->sd_strstart + tab->sd_strsize);
#endif
diff -r 50f1889c0329 -r 4fb85bcec3f7 sys/kern/sysv_shm.c
--- a/sys/kern/sysv_shm.c Tue Jul 27 14:04:55 2010 +0000
+++ b/sys/kern/sysv_shm.c Tue Jul 27 14:25:23 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysv_shm.c,v 1.117 2009/10/05 23:47:04 rmind Exp $ */
+/* $NetBSD: sysv_shm.c,v 1.118 2010/07/27 14:25:23 jakllsch Exp $ */
/*-
* Copyright (c) 1999, 2007 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysv_shm.c,v 1.117 2009/10/05 23:47:04 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysv_shm.c,v 1.118 2010/07/27 14:25:23 jakllsch Exp $");
#define SYSVSHM
@@ -662,7 +662,7 @@
if (SCARG(uap, shmflg) & _SHM_RMLINGER)
mode |= SHMSEG_RMLINGER;
- SHMPRINTF(("shmget: key 0x%lx size 0x%x shmflg 0x%x mode 0x%x\n",
+ SHMPRINTF(("shmget: key 0x%lx size 0x%zx shmflg 0x%x mode 0x%x\n",
SCARG(uap, key), SCARG(uap, size), SCARG(uap, shmflg), mode));
mutex_enter(&shm_lock);
Home |
Main Index |
Thread Index |
Old Index