Fix printf fmt of long in remote-sim.c.
authorAndrew Cagney <cagney@redhat.com>
Wed, 7 Feb 2001 18:37:25 +0000 (18:37 +0000)
committerAndrew Cagney <cagney@redhat.com>
Wed, 7 Feb 2001 18:37:25 +0000 (18:37 +0000)
mn10300-elf now buildable.

gdb/ChangeLog
gdb/MAINTAINERS
gdb/remote-sim.c

index 1cf44b5caee0eba4b206db6508d2060d21acb240..74ba6377ca74f3f3269ae92afb12067fed3d39ad 100644 (file)
@@ -1,3 +1,8 @@
+2001-02-07  Andrew Cagney  <ac131313@redhat.com>
+
+       * remote-sim.c (dump_mem): Cleanup printf format argument.
+       * MAINTAINERS: Update, mn10300-elf now builds.
+
 2001-02-07  Mark Kettenis  <kettenis@gnu.org>
 
        * event-top.c: Remove duplicate #include <signal.h>.
index 764de675503061f090be47c16c30e07b54852e15..87923a284869cf376dcc316ecaa9776385a10294 100644 (file)
@@ -112,7 +112,7 @@ maintainer works with the native maintainer when resolving API issues.
        mn10200         (--target=mn10200-elf broken)
                        Maintenance only
 
-       mn10300         (--target=mn10300-elf broken)
+       mn10300         --target=mn10300-elf ,-Werror
                        Andrew Cagney           cagney@cygnus.com
 
        ns32k           (--target=ns32k-netbsd broken)
index 268f5f76f779cca115be04d63f266a773e28011b..1976db90676d3f45e801bc32f81d9a45b7d19f56 100644 (file)
@@ -129,7 +129,9 @@ dump_mem (char *buf, int len)
          long l[2];
          memcpy (l, buf, len);
          printf_filtered ("\t0x%lx", l[0]);
-         printf_filtered (len == 8 ? " 0x%x\n" : "\n", l[1]);
+         if (len == 8)
+           printf_filtered (" 0x%lx", l[1]);
+         printf_filtered ("\n");
        }
       else
        {