diff options
author | Stefan Fritsch <sf@cvs.openbsd.org> | 2013-07-03 15:34:49 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@cvs.openbsd.org> | 2013-07-03 15:34:49 +0000 |
commit | 1216a674afebf0b4b5d92e389f804a756be2e912 (patch) | |
tree | c9a6fad48267473d1b51ab588b2f3b02d0125dd6 /sys/dev/pci/amdpm.c | |
parent | edac72af4a900f01ba73958401bb5651be8f45ad (diff) |
fix: cast void * to char *, fix format args for (u)int64_t,
tc_frequency is unsigned
ok kettenis@
Diffstat (limited to 'sys/dev/pci/amdpm.c')
-rw-r--r-- | sys/dev/pci/amdpm.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |