aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2013-02-08 22:52:20 +0000
committerDoug Evans <dje@google.com>2013-02-08 22:52:20 +0000
commit4ff3ce77394e72b446a08032bc67e2a892eadc5d (patch)
tree793e9b7ef2af2d0a907af49b1a5d12569fed709c
parent83ee86b1063dd09b838eaa02dea506d556f04ebc (diff)
downloadgdb-4ff3ce77394e72b446a08032bc67e2a892eadc5d.zip
gdb-4ff3ce77394e72b446a08032bc67e2a892eadc5d.tar.gz
gdb-4ff3ce77394e72b446a08032bc67e2a892eadc5d.tar.bz2
* common/format.c (parse_format_string): Fix whitespace.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/common/format.c14
2 files changed, 11 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b4f88d8..6a0c3e4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2013-02-08 Doug Evans <dje@google.com>
+
+ * common/format.c (parse_format_string): Fix whitespace.
+
2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
* stack.c (return_command): Work around uninitialized variable
diff --git a/gdb/common/format.c b/gdb/common/format.c
index a513853..161ff55 100644
--- a/gdb/common/format.c
+++ b/gdb/common/format.c
@@ -245,10 +245,10 @@ parse_format_string (char **arg)
this_argclass = long_arg;
else
this_argclass = long_long_arg;
-
- if (seen_big_l)
- bad = 1;
- break;
+
+ if (seen_big_l)
+ bad = 1;
+ break;
case 'c':
this_argclass = lcount == 0 ? int_arg : wide_char_arg;
@@ -286,9 +286,9 @@ parse_format_string (char **arg)
else
this_argclass = double_arg;
- if (lcount || seen_h)
- bad = 1;
- break;
+ if (lcount || seen_h)
+ bad = 1;
+ break;
case '*':
error (_("`*' not supported for precision or width in printf"));