From aa8557ef59dbf2529124db18d2dc6cc95e941c17 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Thu, 25 Sep 2008 16:04:02 -0400 Subject: [PATCH] Fix format string in fprintf call When writing out boot duration, we're passing in a double, not a a float, but were using %f. --- src/ply-boot-splash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ply-boot-splash.c b/src/ply-boot-splash.c index fa5eee52..a67224b6 100644 --- a/src/ply-boot-splash.c +++ b/src/ply-boot-splash.c @@ -165,7 +165,7 @@ save_boot_duration (ply_boot_splash_t *splash) if (fp != NULL) { - fprintf (fp, "%.1f\n", (ply_get_timestamp () - splash->start_time)); + fprintf (fp, "%.1lf\n", (ply_get_timestamp () - splash->start_time)); fclose (fp); } }