Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Add casts to make this compile when KLOADER_DEBUG is...
details: https://anonhg.NetBSD.org/src/rev/be7fa8241ec2
branches: trunk
changeset: 584569:be7fa8241ec2
user: peter <peter%NetBSD.org@localhost>
date: Sat Sep 24 11:27:04 2005 +0000
description:
Add casts to make this compile when KLOADER_DEBUG is defined.
diffstat:
sys/dev/kloader.c | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diffs (57 lines):
diff -r eaf0821c7ef8 -r be7fa8241ec2 sys/dev/kloader.c
--- a/sys/dev/kloader.c Sat Sep 24 11:20:07 2005 +0000
+++ b/sys/dev/kloader.c Sat Sep 24 11:27:04 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kloader.c,v 1.4 2005/09/24 11:20:07 peter Exp $ */
+/* $NetBSD: kloader.c,v 1.5 2005/09/24 11:27:04 peter Exp $ */
/*-
* Copyright (c) 2001, 2002, 2004 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kloader.c,v 1.4 2005/09/24 11:20:07 peter Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kloader.c,v 1.5 2005/09/24 11:27:04 peter Exp $");
#include "debug_kloader.h"
@@ -288,7 +288,7 @@
+ shstrsz /* rounded to 4 bytes */
+ sh[symndx].sh_size
+ sh[strndx].sh_size;
- DPRINTF("ksyms size = 0x%x\n", ksymsz);
+ DPRINTF("ksyms size = 0x%x\n", (unsigned int)ksymsz);
}
sz += ROUND4(ksymsz);
@@ -517,8 +517,8 @@
if (freesz > sz)
freesz = sz;
- DPRINTFN(1, "0x%08lx + 0x%x <- 0x%lx\n", dst, freesz,
- (unsigned long)ofs);
+ DPRINTFN(1, "0x%08lx + 0x%x <- 0x%lx\n", dst,
+ (unsigned int)freesz, (unsigned long)ofs);
kloader_read(ofs, freesz, (void *)(tag->src + tag->sz));
tag->sz += freesz;
@@ -542,7 +542,8 @@
if (freesz > sz)
freesz = sz;
- DPRINTFN(1, "0x%08lx + 0x%x <- %p\n", dst, freesz, src);
+ DPRINTFN(1, "0x%08lx + 0x%x <- %p\n", dst,
+ (unsigned int)freesz, src);
memcpy((void *)(tag->src + tag->sz), src, freesz);
tag->sz += freesz;
@@ -566,7 +567,7 @@
if (freesz > sz)
freesz = sz;
- DPRINTFN(1, "0x%08lx + 0x%x\n", dst, freesz);
+ DPRINTFN(1, "0x%08lx + 0x%x\n", dst, (unsigned int)freesz);
memset((void *)(tag->src + tag->sz), 0, freesz);
tag->sz += freesz;
Home |
Main Index |
Thread Index |
Old Index