mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Fix log output in hex output mode
This commit is contained in:
parent
f257b7fba5
commit
b0e9fa02e8
1 changed files with 13 additions and 6 deletions
|
|
@ -194,9 +194,15 @@ void log_putc(char c)
|
|||
return;
|
||||
}
|
||||
|
||||
if (option.output_mode == OUTPUT_MODE_HEX)
|
||||
{
|
||||
fprintf(fp, "%02x ", (unsigned char) c);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (option.log_strip)
|
||||
{
|
||||
if (!log_strip(c))
|
||||
if (log_strip(c) == false)
|
||||
{
|
||||
fputc(c, fp);
|
||||
}
|
||||
|
|
@ -206,6 +212,7 @@ void log_putc(char c)
|
|||
fputc(c, fp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void log_close(void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue