summaryrefslogtreecommitdiff
path: root/hardware.c
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2009-02-14 21:16:30 +0000
committerMatt Turner <mattst88@gmail.com>2009-02-14 21:16:30 +0000
commit4f4a74e76d0b7dfea9904cbb43a8905cf80768c6 (patch)
treed021dcf3dde6b76c13467725dedfaa22585febee /hardware.c
parent3623dac70811c8a8622233ca15a09ebbad331342 (diff)
More Cleanups, found using icc
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@92 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
Diffstat (limited to 'hardware.c')
-rw-r--r--hardware.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hardware.c b/hardware.c
index dc29355..de2ad68 100644
--- a/hardware.c
+++ b/hardware.c
@@ -4,6 +4,8 @@
#include <proccpuinfo.h>
+#include "cleanbench.h"
+
#define BUF_SIZ 1024
/******************
@@ -69,7 +71,7 @@ static void readProcCpuInfo (char *model, char *cache) {
break;
}
snprintf(model, BUF_SIZ, format, info->hardware_platform, info->architecture, info->frequency);
- snprintf(cache, BUF_SIZ, "%d KB", info->cache);
+ snprintf(cache, BUF_SIZ, "%u KB", info->cache);
proccpuinfo_free(info);
}