This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] minor reformatting in printcmd.c::print_scalar_formatted
- From: Joel Brobecker <brobecke at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 20 Jan 2016 04:04:01 -0000
- Subject: [binutils-gdb] minor reformatting in printcmd.c::print_scalar_formatted
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=be56871ee8f65c51b9eee611532ed036a71a72e0
commit be56871ee8f65c51b9eee611532ed036a71a72e0
Author: Joel Brobecker <brobecker@adacore.com>
Date: Wed Jan 20 08:01:39 2016 +0400
minor reformatting in printcmd.c::print_scalar_formatted
(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.
Diff:
---
gdb/ChangeLog | 6 ++++++
gdb/printcmd.c | 6 +++---
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6a77fdd..d1a6069 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index 8acf441..f5c4211 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -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)
{