From 8296fae15b928bebcafe48ec685b4ef6921dedf6 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Tue, 14 Oct 2003 08:57:54 -0400 Subject: [PATCH] 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 --- base/hostinfo.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2