Fix warning in gdb.base/signals-state-child.c
authorYao Qi <yao.qi@linaro.org>
Fri, 12 Aug 2016 10:02:04 +0000 (11:02 +0100)
committerYao Qi <yao.qi@linaro.org>
Fri, 12 Aug 2016 10:02:04 +0000 (11:02 +0100)
commit7b17065f843252c27e8b9c093f78382079fe4d7f
tree1385cc01c5ce6d7db80d526cf2a1b6379d49210b
parentbf174910c85dee65d9bbacb5cb5a40c1c7a91399
Fix warning in gdb.base/signals-state-child.c

I see the following warning when running signals-state-child.exp.

gdb/testsuite/gdb.base/signals-state-child.c:77:4: warning: too many arguments for format [-Wformat-extra-args]
    fprintf (out, "sigaction={sa_handler=", i);
    ^

this patch is to remove the argument from fprintf.

gdb/testsuite:

2016-08-12  Yao Qi  <yao.qi@linaro.org>

* gdb.base/signals-state-child.c (main): Remove "i" from fprintf's
argument list.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/signals-state-child.c