diff options
author | Matt Turner <mattst88@gmail.com> | 2009-02-14 21:16:30 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2009-02-14 21:16:30 +0000 |
commit | 4f4a74e76d0b7dfea9904cbb43a8905cf80768c6 (patch) | |
tree | d021dcf3dde6b76c13467725dedfaa22585febee /hardware.c | |
parent | 3623dac70811c8a8622233ca15a09ebbad331342 (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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); } |