This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Sanitize input_interrupt output
- From: Pedro Alves <palves at redhat dot com>
- To: Sergio Durigan Junior <sergiodj at redhat dot com>, Andreas Schwab <schwab at linux-m68k dot org>
- Cc: GDB Patches <gdb-patches at sourceware dot org>
- Date: Mon, 29 Dec 2014 11:12:28 +0000
- Subject: Re: [PATCH] Sanitize input_interrupt output
- Authentication-results: sourceware.org; auth=none
- References: <1419657863-13470-1-git-send-email-sergiodj at redhat dot com> <m2h9whij5f dot fsf at linux-m68k dot org> <87lhlslbqg dot fsf at redhat dot com>
On 12/28/2014 03:00 AM, Sergio Durigan Junior wrote:
> On Saturday, December 27 2014, Andreas Schwab wrote:
>
>> Sergio Durigan Junior <sergiodj@redhat.com> writes:
>>
>>> + {
>>> + fprintf (stderr, "input_interrupt, count = %d c = %d ", cc, c);
>>> + if (isprint (c))
>>> + fprintf (stderr, "('%c')\n", c);
>>> + else
>>> + fprintf (stderr, "('\\x%02x)\n", c & 0xFF);
>> ^
>>
>> Missing second quote character.
>
> Ops, thanks. Corrected version below.
OK, but please write "0xff" in lowercase.
Thanks!
Pedro Alves