Fix printf warnings.

This commit is contained in:
tsutsui 2006-01-26 16:26:58 +00:00
parent dfd8bc48f7
commit 61373eec82
3 changed files with 9 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: boot.c,v 1.1 2005/12/29 15:20:09 tsutsui Exp $ */
/* $NetBSD: boot.c,v 1.2 2006/01/26 16:26:58 tsutsui Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -323,8 +323,7 @@ set_device_capability(void)
DEVICE_CAPABILITY.network_enabled ? 'x' : '_',
kernel_binary_size ? 'x' : '_');
printf("booted from %s IPL",
devname[DEVICE_CAPABILITY.booted_device], booted_unit);
printf("booted from %s IPL", devname[DEVICE_CAPABILITY.booted_device]);
if ((DEVICE_CAPABILITY.booted_device == NVSRAM_BOOTDEV_NETWORK) ||
(DEVICE_CAPABILITY.booted_device == NVSRAM_BOOTDEV_NETWORK_T_AND_D))
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: cop0.c,v 1.1 2005/12/29 15:20:09 tsutsui Exp $ */
/* $NetBSD: cop0.c,v 1.2 2006/01/26 16:26:58 tsutsui Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -110,8 +110,8 @@ cmd_tlb(int argc, char *argp[], int interactive)
if (i < 0 || i >= NTLB)
return 1;
e = &entry[i];
printf("[%d] size:%s vaddr:%p paddr:%p+%p mask:%p\n",
i, e->page_size, e->vpn << 12,
printf("[%d] size:%s vaddr:0x%08x paddr:0x%08x+0x%08x "
"mask:0x%08x\n", i, e->page_size, e->vpn << 12,
e->pfn0 << 12, e->pfn1 << 12, e->page_mask);
printf("[%x, %x, %x, %x]\n",
e->PageMask, e->EntryHi, e->EntryLo0, e->EntryLo1);

View File

@ -1,4 +1,4 @@
/* $NetBSD: loader.c,v 1.1 2005/12/29 15:20:09 tsutsui Exp $ */
/* $NetBSD: loader.c,v 1.2 2006/01/26 16:26:58 tsutsui Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -67,7 +67,7 @@ cmd_jump(int argc, char *argp[], int interactive)
else
__asm volatile("move %0, $29" : "=r"(sp)); /* current stack */
printf("jump to %p. sp=%p Y/N\n", addr, sp);
printf("jump to 0x%08x. sp=0x%08x Y/N\n", addr, sp);
if (prompt_yesno(interactive)) {
__asm volatile(
".set noreorder;"
@ -147,7 +147,7 @@ cmd_boot_ux(int argc, char *argp[], int interactive)
printf("load iopboot failed.\n");
return 1;
}
printf("start=%x entry=%x nsym=%x sym=%x end=%x\n",
printf("start=%lx entry=%lx nsym=%lx sym=%lx end=%lx\n",
marks[MARK_START], marks[MARK_ENTRY], marks[MARK_NSYM],
marks[MARK_SYM], marks[MARK_END]);
@ -198,7 +198,7 @@ cmd_boot(int argc, char *argp[], int interactive)
printf("load file failed.\n");
return 1;
}
printf("start=%x entry=%x nsym=%x sym=%x end=%x\n",
printf("start=%lx entry=%lx nsym=%lx sym=%lx end=%lx\n",
marks[MARK_START], marks[MARK_ENTRY], marks[MARK_NSYM],
marks[MARK_SYM], marks[MARK_END]);