* defs.h (error): Add printf format attribute.
* thread-db.c (thread_from_lwp): Fix error format string. * stack.c (parse_frame_specification): Ditto. * cli/cli-decode.c (undef_cmd_error): Ditto. * scm-lang.c (scm_lookup_name): Ditto. * tracepoint.c (trace_error): Ditto. * remote-utils.c (usage): Ditto. * remote.c (compare_sections_command): Ditto. Fix PR gdb/328.
This commit is contained in:
parent
294b41b344
commit
823ca731ed
9 changed files with 21 additions and 9 deletions
|
@ -190,7 +190,7 @@ trace_error (char *buf)
|
|||
if (*++buf == '0') /* general case: */
|
||||
error ("tracepoint.c: error in outgoing packet.");
|
||||
else
|
||||
error ("tracepoint.c: error in outgoing packet at field #%d.",
|
||||
error ("tracepoint.c: error in outgoing packet at field #%ld.",
|
||||
strtol (buf, NULL, 16));
|
||||
case '2':
|
||||
error ("trace API error 0x%s.", ++buf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue