minor reformatting in printcmd.c::print_scalar_formatted
authorJoel Brobecker <brobecker@adacore.com>
Wed, 20 Jan 2016 04:01:39 +0000 (08:01 +0400)
committerJoel Brobecker <brobecker@adacore.com>
Wed, 20 Jan 2016 04:03:44 +0000 (08:03 +0400)
(GNU Coding Standard...)

gdb/ChangeLog:

        * printcmd.c (print_scalar_formatted): move binary operator from
        end of line to beginning of next line.  Adjust formatting
        accordingly.

gdb/ChangeLog
gdb/printcmd.c

index 6a77fdde601201d3ad12ceecc35909495ec93be0..d1a606908a2d150719fe1c53f6d163544bc3aa99 100644 (file)
@@ -1,3 +1,9 @@
+2016-01-20  Joel Brobecker  <brobecker@adacore.com>
+
+       * printcmd.c (print_scalar_formatted): move binary operator from
+       end of line to beginning of next line.  Adjust formatting
+       accordingly.
+
 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
 
        * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
index 8acf44131735c9702ee42a4998e7cee9d8bef96d..f5c4211e5c15df099c49054d0c1504d8eb64eb72 100644 (file)
@@ -358,9 +358,9 @@ print_scalar_formatted (const gdb_byte *valaddr, struct type *type,
   /* String printing should go through val_print_scalar_formatted.  */
   gdb_assert (options->format != 's');
 
-  if (len > sizeof(LONGEST) &&
-      (TYPE_CODE (type) == TYPE_CODE_INT
-       || TYPE_CODE (type) == TYPE_CODE_ENUM))
+  if (len > sizeof(LONGEST)
+      && (TYPE_CODE (type) == TYPE_CODE_INT
+         || TYPE_CODE (type) == TYPE_CODE_ENUM))
     {
       switch (options->format)
        {