Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic To print bus_addr_t value, cast it to u_long rath...



details:   https://anonhg.NetBSD.org/src/rev/4ed8d8f12cad
branches:  trunk
changeset: 750649:4ed8d8f12cad
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Jan 09 14:15:48 2010 +0000

description:
To print bus_addr_t value, cast it to u_long rather than size_t.

diffstat:

 sys/dev/ic/com.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r b9941249528e -r 4ed8d8f12cad sys/dev/ic/com.c
--- a/sys/dev/ic/com.c  Sat Jan 09 13:34:33 2010 +0000
+++ b/sys/dev/ic/com.c  Sat Jan 09 14:15:48 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: com.c,v 1.293 2010/01/08 20:02:39 dyoung Exp $ */
+/* $NetBSD: com.c,v 1.294 2010/01/09 14:15:48 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2004, 2008 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.293 2010/01/08 20:02:39 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.294 2010/01/09 14:15:48 tsutsui Exp $");
 
 #include "opt_com.h"
 #include "opt_ddb.h"
@@ -397,8 +397,8 @@
                comconsattached = 1;
 
                if (cn_tab == NULL && comcnreattach() != 0) {
-                       printf("can't re-init serial console @%zx\n",
-                           (size_t)comcons_info.regs.cr_iobase);
+                       printf("can't re-init serial console @%lx\n",
+                           (u_long)comcons_info.regs.cr_iobase);
                }
 
                /* Make sure the console is always "hardwired". */



Home | Main Index | Thread Index | Old Index