Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/rmi cpu_number() return an u_int, use %u for f...
details: https://anonhg.NetBSD.org/src/rev/f6770a2ff9c5
branches: trunk
changeset: 764636:f6770a2ff9c5
user: matt <matt%NetBSD.org@localhost>
date: Fri Apr 29 21:55:20 2011 +0000
description:
cpu_number() return an u_int, use %u for format
diffstat:
sys/arch/mips/rmi/rmixl_fmn.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r 4ac73f5f95b8 -r f6770a2ff9c5 sys/arch/mips/rmi/rmixl_fmn.c
--- a/sys/arch/mips/rmi/rmixl_fmn.c Fri Apr 29 21:54:14 2011 +0000
+++ b/sys/arch/mips/rmi/rmixl_fmn.c Fri Apr 29 21:55:20 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rmixl_fmn.c,v 1.2 2011/02/20 07:48:37 matt Exp $ */
+/* $NetBSD: rmixl_fmn.c,v 1.3 2011/04/29 21:55:20 matt Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -907,14 +907,14 @@
if ((msg_status & (RMIXL_MSG_STS0_LPF)) == 0)
goto recv;
}
- DIAG_PRF(("%s: cpu%d, bucket=%d, sts=%#x: Load Pending Fail\n",
+ DIAG_PRF(("%s: cpu%u, bucket=%d, sts=%#x: Load Pending Fail\n",
__func__, cpu_number(), bucket, msg_status));
rv = -1;
goto out;
recv:
rmixl_msgld(bucket);
RMIXL_MFC2(RMIXL_COP_2_MSG_STS, 0, msg_status);
- DPRINTF(("%s: cpu%d, bucket=%d, sts=%#x\n",
+ DPRINTF(("%s: cpu%u, bucket=%d, sts=%#x\n",
__func__, cpu_number(), bucket, msg_status));
rv = msg_status & (RMIXL_MSG_STS0_LEF|RMIXL_MSG_STS0_LPF);
if (rv == 0) {
@@ -1148,7 +1148,7 @@
FMN_CP2_4SEL_READ(RMIXL_COP_2_CREDITS+3, 0, &cc[3][0]);
FMN_CP2_4SEL_READ(RMIXL_COP_2_CREDITS+3, 4, &cc[3][4]);
- printf("%s: cpu%d\n", __func__, cpu_number());
+ printf("%s: cpu%u\n", __func__, cpu_number());
for (int i=0; i < 4; i++) {
for (int j=0; j < 8; j++)
printf(" %#x,", cc[i][j]);
Home |
Main Index |
Thread Index |
Old Index