Skip to content

Commit

Permalink
[debug] Remove "unprintable char 0" in debug messages
Browse files Browse the repository at this point in the history
Avoid spamming the log when an application prints NUL bytes into
its output (like e.g. pkcon does sometimes).
  • Loading branch information
Thomas Perl committed Oct 28, 2013
1 parent 8a1af93 commit b2656e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terminal.cpp
Expand Up @@ -350,7 +350,7 @@ void Terminal::insertInBuffer(const QString& chars)
insertAtCursor(ch, !iReplaceMode);
else if (ch.toLatin1()==ch_ESC)
escape=0;
else
else if (ch.toLatin1() != 0)
qDebug() << "unprintable char" << int(ch.toLatin1());
}
}
Expand Down

0 comments on commit b2656e0

Please sign in to comment.