From: Sascha Wildner Date: Fri, 2 Nov 2018 16:28:53 +0000 (+0100) Subject: dmesg(8): Allow seeing backslashes in dmesg output. X-Git-Tag: v5.5.0~64 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/d5fa30b5da29f5d6a8a2282c39c8bca7297b7b6b dmesg(8): Allow seeing backslashes in dmesg output. This caused confusion already in ACPICA bug reports with pathnames containing backslashes. Taken-from: NetBSD --- diff --git a/sbin/dmesg/dmesg.c b/sbin/dmesg/dmesg.c index 5bbe2bc8df..7952a79bb2 100644 --- a/sbin/dmesg/dmesg.c +++ b/sbin/dmesg/dmesg.c @@ -261,7 +261,7 @@ dumpbuf(char *bp, size_t bufpos, size_t buflen, if (ch == '\0') continue; *newl = (ch == '\n'); - vis(buf, ch, 0, 0); + vis(buf, ch, VIS_NOSLASH, 0); if (buf[1] == 0) putchar(buf[0]); else