From b1aaa5e6d52026639f1269f1501bb576d204678f Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Sat, 8 Jul 2017 15:47:48 -0400 Subject: Fix format warning in gcc Part of #227 --- etc/tscfreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/tscfreq.c') diff --git a/etc/tscfreq.c b/etc/tscfreq.c index 459db083c..096a13399 100644 --- a/etc/tscfreq.c +++ b/etc/tscfreq.c @@ -19,5 +19,5 @@ int main() { const long long tsc_hz = ((t1-t0)*1000*1000)/usecs; const long long tsc_mhz = tsc_hz / 1000 / 1000; const long long tsc_ghz = tsc_mhz / 1000; - printf("%1d.%02d\n", tsc_ghz, (tsc_mhz - 1000*tsc_ghz + 5)/10); + printf("%1lli.%02lli\n", tsc_ghz, (tsc_mhz - 1000*tsc_ghz + 5)/10); } -- cgit v1.2.3