This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[obv] Fix xgettext warnings


Hi,

xgettext doesn't like C strings cut by a macro.  This patch fixes two such warnings in readelf.

Committed as obvious after recompilation.

Tristan.

binutils/
2011-09-27  Tristan Gingold  <gingold@adacore.com>

	* readelf.c (print_ia64_vms_note): Fix xgettext warnings.

Index: readelf.c
===================================================================
RCS file: /cvs/src/src/binutils/readelf.c,v
retrieving revision 1.554
diff -c -r1.554 readelf.c
*** readelf.c	21 Sep 2011 20:49:13 -0000	1.554
--- readelf.c	27 Sep 2011 12:00:42 -0000
***************
*** 12694,12700 ****
        break;
  #ifdef BFD64
      case NT_VMS_FPMODE:
!       printf (_("   FP mode: 0x%016" BFD_VMA_FMT "x\n"),
                (bfd_vma)byte_get ((unsigned char *)pnote->descdata, 8));
        break;
      case NT_VMS_LINKTIME:
--- 12694,12701 ----
        break;
  #ifdef BFD64
      case NT_VMS_FPMODE:
!       printf (_("   FP mode: "));
!       printf ("0x%016" BFD_VMA_FMT "x\n",
                (bfd_vma)byte_get ((unsigned char *)pnote->descdata, 8));
        break;
      case NT_VMS_LINKTIME:
***************
*** 12717,12723 ****
        print_vms_time
          ((bfd_int64_t) byte_get ((unsigned char *)pnote->descdata + 8, 8));
        printf (_("\n"
!                 "   Link flags  : 0x%016" BFD_VMA_FMT "x\n"),
                (bfd_vma)byte_get ((unsigned char *)pnote->descdata + 16, 8));
        printf (_("   Header flags: 0x%08x\n"),
                (unsigned)byte_get ((unsigned char *)pnote->descdata + 24, 4));
--- 12718,12725 ----
        print_vms_time
          ((bfd_int64_t) byte_get ((unsigned char *)pnote->descdata + 8, 8));
        printf (_("\n"
!                 "   Link flags  : "));
!       printf ("0x%016" BFD_VMA_FMT "x\n",
                (bfd_vma)byte_get ((unsigned char *)pnote->descdata + 16, 8));
        printf (_("   Header flags: 0x%08x\n"),
                (unsigned)byte_get ((unsigned char *)pnote->descdata + 24, 4));


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]