]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - binutils/od-elf32_avr.c
2.41 Release sources
[thirdparty/binutils-gdb.git] / binutils / od-elf32_avr.c
index 19da74a7c65e825b2f1d3f27304bc48ce19e8ec5..cc24919160f0f51e868edec06c9edc8ef2bf8030 100644 (file)
@@ -270,26 +270,25 @@ elf32_avr_dump_mem_usage (bfd *abfd)
           "Device: %s\n\n", device.name);
 
   /* Text size */
-  printf ("Program:%8" PRIu64 " bytes", (uint64_t) text_usage);
+  printf ("Program:%8lu bytes", text_usage);
   if (device.flash_size > 0)
-    printf (" (%2.1f%% Full)", (double) text_usage / device.flash_size * 100);
+    printf (" (%2.1f%% Full)", ((float) text_usage / device.flash_size) * 100);
 
   printf ("\n(.text + .data + .bootloader)\n\n");
 
   /* Data size */
-  printf ("Data:   %8" PRIu64 " bytes", (uint64_t) data_usage);
+  printf ("Data:   %8lu bytes", data_usage);
   if (device.ram_size > 0)
-    printf (" (%2.1f%% Full)", (double) data_usage / device.ram_size * 100);
+    printf (" (%2.1f%% Full)", ((float) data_usage / device.ram_size) * 100);
 
   printf ("\n(.data + .bss + .noinit)\n\n");
 
   /* EEPROM size */
   if (eeprom_usage > 0)
     {
-      printf ("EEPROM: %8" PRIu64 " bytes", (uint64_t) eeprom_usage);
+      printf ("EEPROM: %8lu bytes", eeprom_usage);
       if (device.eeprom_size > 0)
-       printf (" (%2.1f%% Full)",
-               (double) eeprom_usage / device.eeprom_size * 100);
+        printf (" (%2.1f%% Full)", ((float) eeprom_usage / device.eeprom_size) * 100);
 
       printf ("\n(.eeprom)\n\n");
     }
@@ -316,12 +315,12 @@ elf32_avr_dump_avr_prop (bfd *abfd)
 
   for (i = 0; i < r_list->record_count; ++i)
     {
-      printf ("   %d %s @ %s + %#08" PRIx64" (%#08" PRIx64 ")\n",
+      printf ("   %d %s @ %s + %#08lx (%#08lx)\n",
              i,
              avr_elf32_property_record_name (&r_list->records [i]),
              r_list->records [i].section->name,
-             (uint64_t) r_list->records [i].offset,
-             ((uint64_t) bfd_section_vma (r_list->records [i].section)
+             r_list->records [i].offset,
+             (bfd_section_vma (r_list->records [i].section)
               + r_list->records [i].offset));
       switch (r_list->records [i].type)
         {