projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a12f36
)
small fixes
author
Nathan Binkert
<binkertn@umich.edu>
Tue, 14 Oct 2003 12:57:54 +0000
(08:57 -0400)
committer
Nathan Binkert
<binkertn@umich.edu>
Tue, 14 Oct 2003 12:57:54 +0000
(08:57 -0400)
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
base/hostinfo.cc
patch
|
blob
|
history
diff --git
a/base/hostinfo.cc
b/base/hostinfo.cc
index b530ae23750ab3d74c60388d870e7a14573fc95b..44d7e1bcd34cd5f3bff9b5ed569d82c04edab26a 100644
(file)
--- 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 %%l
l
d", target);
sscanf(line, format, &usage);
fclose(fp);