summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorStefan Fritsch <sf@cvs.openbsd.org>2013-07-03 15:34:49 +0000
committerStefan Fritsch <sf@cvs.openbsd.org>2013-07-03 15:34:49 +0000
commit1216a674afebf0b4b5d92e389f804a756be2e912 (patch)
treec9a6fad48267473d1b51ab588b2f3b02d0125dd6 /sys/dev
parentedac72af4a900f01ba73958401bb5651be8f45ad (diff)
fix: cast void * to char *, fix format args for (u)int64_t,
tc_frequency is unsigned ok kettenis@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/acpi/acpithinkpad.c4
-rw-r--r--sys/dev/pci/amdpm.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/acpi/acpithinkpad.c b/sys/dev/acpi/acpithinkpad.c
index 511fc1584da..1499e552502 100644
--- a/sys/dev/acpi/acpithinkpad.c
+++ b/sys/dev/acpi/acpithinkpad.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpithinkpad.c,v 1.30 2013/04/02 00:46:47 jcs Exp $ */
+/* $OpenBSD: acpithinkpad.c,v 1.31 2013/07/03 15:34:48 sf Exp $ */
/*
* Copyright (c) 2008 joshua stein <jcs@openbsd.org>
*
@@ -347,7 +347,7 @@ thinkpad_hotkey(struct aml_node *node, int notify_type, void *arg)
handled = 1;
break;
default:
- printf("%s: unknown event 0x%03x\n",
+ printf("%s: unknown event 0x%03llx\n",
DEVNAME(sc), event);
}
}
diff --git a/sys/dev/pci/amdpm.c b/sys/dev/pci/amdpm.c
index 6fea65c5247..541070118e8 100644
--- a/sys/dev/pci/amdpm.c
+++ b/sys/dev/pci/amdpm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: amdpm.c,v 1.29 2013/05/30 16:15:02 deraadt Exp $ */
+/* $OpenBSD: amdpm.c,v 1.30 2013/07/03 15:34:48 sf Exp $ */
/*
* Copyright (c) 2006 Alexander Yurchenko <grange@openbsd.org>
@@ -247,7 +247,7 @@ amdpm_attach(struct device *parent, struct device *self, void *aux)
(cfg_reg & AMDPM_STOPTMR) == 0 &&
(PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_AMD_PBC768_PMC ||
PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_AMD_8111_PMC)) {
- printf(": %d-bit timer at %dHz",
+ printf(": %d-bit timer at %lluHz",
(cfg_reg & AMDPM_TMR32) ? 32 : 24,
amdpm_timecounter.tc_frequency);