Module Name:    src
Committed By:   matt
Date:           Thu Aug 20 21:31:49 UTC 2009

Modified Files:
        src/sys/arch/alpha/include: types.h

Log Message:
Add print format specifiers for {p,v}{addr,size}_t and register_t,
PRTx{P,V}{ADDR,SIZE} and PRTxREGISTER, respectively.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/arch/alpha/include/types.h

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

Modified files:

Index: src/sys/arch/alpha/include/types.h
diff -u src/sys/arch/alpha/include/types.h:1.40 src/sys/arch/alpha/include/types.h:1.41
--- src/sys/arch/alpha/include/types.h:1.40	Sun Jan 20 18:09:04 2008
+++ src/sys/arch/alpha/include/types.h	Thu Aug 20 21:31:49 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.40 2008/01/20 18:09:04 joerg Exp $ */
+/* $NetBSD: types.h,v 1.41 2009/08/20 21:31:49 matt Exp $ */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -50,9 +50,16 @@
 typedef unsigned long	psize_t;
 typedef unsigned long	vaddr_t;
 typedef unsigned long	vsize_t;
+#define	PRTxPADDR	"lx"
+#define	PRTxPSIZE	"lx"
+#define	PRTxVADDR	"lx"
+#define	PRTxVSIZE	"lx"
 #endif
 
 typedef long int	register_t;
+#if defined(_NETBSD_SOURCE)
+#define	PRTxREGISTER	"lx"
+#endif
 
 typedef	volatile int		__cpu_simple_lock_t;
 

Reply via email to