summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2003-10-14 08:57:54 -0400
committerNathan Binkert <binkertn@umich.edu>2003-10-14 08:57:54 -0400
commit8296fae15b928bebcafe48ec685b4ef6921dedf6 (patch)
tree768ae72adb51b92c5601bfb5259eb797aa0fbb8b
parent1a12f365e0eb0bf5832e83236c0144ba803daf52 (diff)
downloadgem5-8296fae15b928bebcafe48ec685b4ef6921dedf6.tar.xz
small fixes
base/hostinfo.cc: Since we're talking about a u_int64, use %lld. Maybe this should be converted using toNumber in the future. --HG-- extra : convert_revision : f2ae97585d3009c380553313129dfdd212d6716b
-rw-r--r--base/hostinfo.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/hostinfo.cc b/base/hostinfo.cc
index b530ae237..44d7e1bcd 100644
--- a/base/hostinfo.cc
+++ b/base/hostinfo.cc
@@ -49,7 +49,7 @@ procInfo(char *filename, char *target)
while (fp && !feof(fp) && !done) {
if (fgets(line, 80, fp)) {
if (strncmp(line, target, strlen(target)) == 0) {
- sprintf(format, "%s %%ld", target);
+ sprintf(format, "%s %%lld", target);
sscanf(line, format, &usage);
fclose(fp);