]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Fix format string in fprintf call
authorRay Strode <rstrode@redhat.com>
Thu, 25 Sep 2008 20:04:02 +0000 (16:04 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 29 Sep 2008 03:40:28 +0000 (23:40 -0400)
When writing out boot duration,
we're passing in a double, not a
a float, but were using %f.

src/ply-boot-splash.c

index fa5eee52a2bc22963d5289818fef638c53572a1f..a67224b662cd08dbcc49fe8146cd1f6c1a7872a3 100644 (file)
@@ -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);
     }
 }