Module Name:    src
Committed By:   tsutsui
Date:           Sat Jan  9 14:15:49 UTC 2010

Modified Files:
        src/sys/dev/ic: com.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.293 -r1.294 src/sys/dev/ic/com.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/com.c
diff -u src/sys/dev/ic/com.c:1.293 src/sys/dev/ic/com.c:1.294
--- src/sys/dev/ic/com.c:1.293	Fri Jan  8 20:02:39 2010
+++ src/sys/dev/ic/com.c	Sat Jan  9 14:15:48 2010
@@ -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". */

Reply via email to