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
This commit is contained in:
Nathan Binkert 2003-10-14 08:57:54 -04:00
parent 1a12f365e0
commit 8296fae15b

View file

@ -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);