summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2005-09-12 16:09:58 -0400
committerAli Saidi <saidi@eecs.umich.edu>2005-09-12 16:09:58 -0400
commit00a2e4a1203e8d39290e917e505ecd1d2a597b5c (patch)
treede5e668964b7ce4f99d6feeb4ecb1fd5af9db6e7
parent4aa6805949a262394f59a9d17fcd30573674ea61 (diff)
parent332f1848240f2c557476b21e993d8b3910f32db5 (diff)
downloadgem5-00a2e4a1203e8d39290e917e505ecd1d2a597b5c.tar.xz
Merge zizzer:/bk/m5
into zeep.eecs.umich.edu:/z/saidi/work/m5 --HG-- extra : convert_revision : 792c2993791fdce6170c7b875fc6510c74faae65
-rw-r--r--base/hostinfo.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/hostinfo.cc b/base/hostinfo.cc
index df9bd0d29..d15e3ddc1 100644
--- a/base/hostinfo.cc
+++ b/base/hostinfo.cc
@@ -70,7 +70,7 @@ procInfo(char *filename, char *target)
while (fp && !feof(fp) && !done) {
if (fgets(line, 80, fp)) {
if (strncmp(line, target, strlen(target)) == 0) {
- snprintf(format, sizeof(format), "%s %%lld", target);
+ snprintf(format, sizeof(format), "%s %%ld", target);
sscanf(line, format, &usage);
fclose(fp);