aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorGravatar Jason Gross <jgross@mit.edu>2017-07-08 15:47:48 -0400
committerGravatar Jason Gross <jgross@mit.edu>2017-07-08 15:47:48 -0400
commitb1aaa5e6d52026639f1269f1501bb576d204678f (patch)
tree94b2ebf159189b48fe87a1ca440bbc5c64d556cf /etc
parent2f93457abac5bf95633c49ba49a4e1e0fb552633 (diff)
Fix format warning in gcc
Part of #227
Diffstat (limited to 'etc')
-rw-r--r--etc/tscfreq.c2
1 files changed, 1 insertions, 1 deletions
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);
}