From: Ray Strode Date: Thu, 25 Sep 2008 20:04:02 +0000 (-0400) Subject: Fix format string in fprintf call X-Git-Tag: 0.6.0~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa8557ef59dbf2529124db18d2dc6cc95e941c17;p=thirdparty%2Fplymouth.git 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. --- 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); } }