diff --git a/libexec/getty/chat.c b/libexec/getty/chat.c index 8fb8aad7a56d..4817c977ce1b 100644 --- a/libexec/getty/chat.c +++ b/libexec/getty/chat.c @@ -388,7 +388,7 @@ chat_send(char const *str) { int r = 0; - if (chat_debug && CHATDEBUG_SEND) + if (chat_debug & CHATDEBUG_SEND) syslog(LOG_DEBUG, "chat_send '%s'", cleanstr(str, strlen(str))); if (*str) {