From 1baf274d2ba05432a4eedc9170866e8562602f34 Mon Sep 17 00:00:00 2001 From: kevinlekiller Date: Fri, 25 Mar 2022 16:37:28 -0400 Subject: [PATCH] Minor changes. --- .gitignore | 1 + amdctl.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 6fcfc61..733a123 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ *.orig amdctl /.idea/ +.amdctl.c.kate-swp diff --git a/amdctl.c b/amdctl.c index df1fa73..8db960f 100644 --- a/amdctl.c +++ b/amdctl.c @@ -637,7 +637,7 @@ void printCpuPstate(const unsigned char idd) { if (!idd) { printf("%7s%7s%8s%9s", "", "", "", ""); } - printf("%6d%5hdmV", NbVid, vidTomV(NbVid)); + printf("%6d%5dmV", NbVid, vidTomV(NbVid)); } printf("\n"); } @@ -759,7 +759,7 @@ void rwMsrReg(const uint32_t reg, const unsigned char read) { } /** - * Read or write data to specified PCI location at specified66 register. + * Read or write data to specified PCI location at specified register. * @param loc -> PCI location to read or write to. * @param reg -> Register to read or write to. * @param read -> 1 to read data, 0 to write data. @@ -917,7 +917,7 @@ float getCpuMultiplier(const unsigned short CpuFid, const unsigned short CpuDid) case AMD11H: return (float) (CpuFid + 0x08) / (float) (2 << CpuDid); case AMD12H: - return (float) (CpuFid + 0x10f) / getDiv(CpuDid); + return (float) (CpuFid + 0x10) / getDiv(CpuDid); case AMD14H: return getClockSpeed(CpuFid, CpuDid) / (float) REFCLK; case AMD17H: