From: Nathan Binkert Date: Tue, 14 Oct 2003 12:57:54 +0000 (-0400) Subject: small fixes X-Git-Tag: m5_1.0_beta1~30 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8296fae15b928bebcafe48ec685b4ef6921dedf6;p=gem5.git 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 --- 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);