From cbb36416aba6454ca17a27db6a41b2706e079c58 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 27 Jun 2016 09:52:50 -0600 Subject: [PATCH] Need to use back- not forward-slash in character constant --- drivers/syslog/syslog_devchannel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/syslog/syslog_devchannel.c b/drivers/syslog/syslog_devchannel.c index fbc912ad78..e0251efc8e 100644 --- a/drivers/syslog/syslog_devchannel.c +++ b/drivers/syslog/syslog_devchannel.c @@ -102,11 +102,11 @@ static int syslog_devchan_putc(int ch) /* Check for a linefeed */ - if (ch == '/n') + if (ch == '\n') { /* Pre-pend a carriage return */ - ret = syslog_dev_putc('/r'); + ret = syslog_dev_putc('\r'); if (ret < 0) { return ret;