[freenos] r378 committed - Fixed format warning under 64-bit host systems in libboot.

  • From: freenos@xxxxxxxxxxxxxx
  • To: freenos@xxxxxxxxxxxxx
  • Date: Fri, 15 Oct 2010 21:57:50 +0000

Revision: 378
Author: nieklinnenbank
Date: Fri Oct 15 14:57:18 2010
Log: Fixed format warning under 64-bit host systems in libboot.

http://code.google.com/p/freenos/source/detail?r=378

Modified:
 /branches/scratch/lib/libboot/libboot.c

=======================================
--- /branches/scratch/lib/libboot/libboot.c     Fri Oct 15 13:45:33 2010
+++ /branches/scratch/lib/libboot/libboot.c     Fri Oct 15 14:57:18 2010
@@ -154,9 +154,8 @@
                  (i * sizeof(boot_prog_t)), SEEK_SET) != 0)
         {
             snprintf(err_buf, sizeof(err_buf),
-                    "failed to fseek() to boot_prog_off %x: %s",
-                     image.prog_table_off +
-                     (i * sizeof(boot_prog_t)), strerror(errno));
+                    "failed to fseek() to boot_prog_off: %s",
+                     strerror(errno));
             return -1;
         }
         /* Write the boot program. */

Other related posts:

  • » [freenos] r378 committed - Fixed format warning under 64-bit host systems in libboot. - freenos