]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Unify message for unsupported relocation.
authorVladimir Serbinenko <phcoder@gmail.com>
Tue, 17 Dec 2013 15:17:46 +0000 (16:17 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Tue, 17 Dec 2013 15:17:46 +0000 (16:17 +0100)
ChangeLog
util/grub-mkimagexx.c

index 39515b8dac39d847a1eee239bf0de0e321ec96dc..c8bf716b0dae20c9ee29bb57433bbf5a4d35ad67 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       Unify message for unsupported relocation.
+
 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
 
        Mark miscompile error for translation.
index b62a8a3a350bf7b3609af85ecf74e577151fe079..a5ef0bfd282c58ac94ae00a65d0b9e958d81c396 100644 (file)
@@ -564,7 +564,8 @@ arm_get_trampoline_size (Elf_Ehdr *e,
                break;
 
              default:
-               grub_util_error (_("relocation 0x%x is not implemented yet!"), ELF_R_TYPE (info));
+               grub_util_error (_("relocation 0x%x is not implemented yet"),
+                                (unsigned int) ELF_R_TYPE (info));
                break;
              }
          }
@@ -681,8 +682,8 @@ SUFFIX (relocate_addresses) (Elf_Ehdr *e, Elf_Shdr *sections,
                                  (unsigned long long) offset);
                  break;
                default:
-                 grub_util_error (_("relocation 0x%llx is not implemented yet"),
-                                  (unsigned long long) ELF_R_TYPE (info));
+                 grub_util_error (_("relocation 0x%x is not implemented yet"),
+                                  (unsigned int) ELF_R_TYPE (info));
                  break;
                }
              break;
@@ -744,8 +745,8 @@ SUFFIX (relocate_addresses) (Elf_Ehdr *e, Elf_Shdr *sections,
                  }
 
                default:
-                 grub_util_error (_("relocation 0x%llx is not implemented yet"),
-                                  (unsigned long long) ELF_R_TYPE (info));
+                 grub_util_error (_("relocation 0x%x is not implemented yet"),
+                                  (unsigned int) ELF_R_TYPE (info));
                  break;
                }
              break;
@@ -820,8 +821,8 @@ SUFFIX (relocate_addresses) (Elf_Ehdr *e, Elf_Shdr *sections,
                  break;
 
                default:
-                 grub_util_error (_("relocation 0x%llx is not implemented yet"),
-                                  (unsigned long long) ELF_R_TYPE (info));
+                 grub_util_error (_("relocation 0x%x is not implemented yet"),
+                                  (unsigned int) ELF_R_TYPE (info));
                  break;
                }
               break;
@@ -848,8 +849,8 @@ SUFFIX (relocate_addresses) (Elf_Ehdr *e, Elf_Shdr *sections,
                     }
                     break;
                   default:
-                    grub_util_error (_("relocation %d is not implemented yet"),
-                                     (unsigned long long) ELF_R_TYPE (info));
+                    grub_util_error (_("relocation 0x%x is not implemented yet"),
+                                     (unsigned int) ELF_R_TYPE (info));
                     break;
                   }
               break;
@@ -943,7 +944,8 @@ SUFFIX (relocate_addresses) (Elf_Ehdr *e, Elf_Shdr *sections,
                     break;
 
                   default:
-                    grub_util_error (_("relocation 0x%x is not implemented yet!"), ELF_R_TYPE (info));
+                    grub_util_error (_("relocation 0x%x is not implemented yet"),
+                                     (unsigned int) ELF_R_TYPE (info));
                     break;
                   }
                 break;
@@ -1174,8 +1176,8 @@ SUFFIX (make_reloc_section) (Elf_Ehdr *e, void **out,
 #endif
                  break;
                default:
-                 grub_util_error (_("relocation 0x%llx is not implemented yet"),
-                                  (unsigned long long) ELF_R_TYPE (info));
+                 grub_util_error (_("relocation 0x%x is not implemented yet"),
+                                  (unsigned int) ELF_R_TYPE (info));
                  break;
                }
                break;
@@ -1199,8 +1201,8 @@ SUFFIX (make_reloc_section) (Elf_Ehdr *e, void **out,
                  case R_AARCH64_JUMP26:
                    break;
                  default:
-                   grub_util_error (_("fixup for relocation %d is not implemented yet"),
-                                    (unsigned long long) ELF_R_TYPE (info));
+                   grub_util_error (_("fixup for relocation %u is not implemented yet"),
+                                    (unsigned int) ELF_R_TYPE (info));
                    break;
                  }
                break;