summaryrefslogtreecommitdiff
path: root/usr.sbin/acpidump/aml/aml_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/acpidump/aml/aml_common.c')
-rw-r--r--usr.sbin/acpidump/aml/aml_common.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/acpidump/aml/aml_common.c b/usr.sbin/acpidump/aml/aml_common.c
index 32a97d9ac78..b5f4c3f68e2 100644
--- a/usr.sbin/acpidump/aml/aml_common.c
+++ b/usr.sbin/acpidump/aml/aml_common.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aml_common.c,v 1.1 2005/06/02 20:09:39 tholo Exp $ */
+/* $OpenBSD: aml_common.c,v 1.2 2008/09/10 14:59:53 miod Exp $ */
/*-
* Copyright (c) 1999 Takanori Watanabe
* Copyright (c) 1999, 2000 Mitsuru IWASAKI <iwasaki@FreeBSD.org>
@@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: aml_common.c,v 1.1 2005/06/02 20:09:39 tholo Exp $
+ * $Id: aml_common.c,v 1.2 2008/09/10 14:59:53 miod Exp $
* $FreeBSD: src/usr.sbin/acpi/amldb/aml/aml_common.c,v 1.6 2000/11/09 06:24:45 iwasaki Exp $
*/
#include <sys/types.h>
@@ -659,8 +659,8 @@ aml_region_io_simple(struct aml_environ *env, int io, int regtype,
}
readval |= (value << (i * 8));
}
- AML_DEBUGPRINT("\t[%d:0x%x@0x%x:%d,%d]",
- regtype, readval, handle.addr, offset, bitlen);
+ AML_DEBUGPRINT("\t[%d:0x%x@%p:%d,%d]",
+ regtype, readval, (void *)handle.addr, offset, bitlen);
}
switch (io) {
@@ -681,8 +681,8 @@ aml_region_io_simple(struct aml_environ *env, int io, int regtype,
value = aml_adjust_updatevalue(flags, offset,
bitlen, readval, value);
value = aml_region_prompt_write(&handle, value);
- AML_DEBUGPRINT("\t->[%d:0x%x@0x%x:%d,%d]\n", regtype, value,
- handle.addr, offset, bitlen);
+ AML_DEBUGPRINT("\t->[%d:0x%x@%p:%d,%d]\n", regtype, value,
+ (void *)handle.addr, offset, bitlen);
for (i = 0; i < bytelen; i += handle.unit) {
state = aml_region_write_simple(&handle, i, value);
if (state == -1) {