Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha/include Add print format specifiers for {p, v}...
details: https://anonhg.NetBSD.org/src/rev/cc02a7c116b7
branches: trunk
changeset: 746827:cc02a7c116b7
user: matt <matt%NetBSD.org@localhost>
date: Thu Aug 20 21:31:49 2009 +0000
description:
Add print format specifiers for {p,v}{addr,size}_t and register_t,
PRTx{P,V}{ADDR,SIZE} and PRTxREGISTER, respectively.
diffstat:
sys/arch/alpha/include/types.h | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (26 lines):
diff -r befd58d7b9c0 -r cc02a7c116b7 sys/arch/alpha/include/types.h
--- a/sys/arch/alpha/include/types.h Thu Aug 20 21:25:59 2009 +0000
+++ b/sys/arch/alpha/include/types.h Thu Aug 20 21:31:49 2009 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index