From patchwork Wed Jan 20 04:06:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Brobecker X-Patchwork-Id: 10479 Received: (qmail 121634 invoked by alias); 20 Jan 2016 04:06:12 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 121616 invoked by uid 89); 20 Jan 2016 04:06:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=String, Hx-languages-length:1477, 20160120, 2016-01-20 X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 20 Jan 2016 04:06:09 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id C10631168F3 for ; Tue, 19 Jan 2016 23:06:07 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 50BloOXn-DjN for ; Tue, 19 Jan 2016 23:06:07 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 5EEC91168E9 for ; Tue, 19 Jan 2016 23:06:07 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 6BFE945017; Wed, 20 Jan 2016 08:06:03 +0400 (RET) From: Joel Brobecker To: gdb-patches@sourceware.org Subject: [pushed/ob] minor reformatting in printcmd.c::print_scalar_formatted Date: Wed, 20 Jan 2016 08:06:01 +0400 Message-Id: <1453262761-28516-1-git-send-email-brobecker@adacore.com> Hello, I just happened to notice this very minor violation which was so easy to fix that I had to do it... gdb/ChangeLog: * printcmd.c (print_scalar_formatted): move binary operator from end of line to beginning of next line. Adjust formatting accordingly. "tested" simply by rebuilding GDB. --- 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 + + * 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 * 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) {