dmesg(8): Allow seeing backslashes in dmesg output.
authorSascha Wildner <saw@online.de>
Fri, 2 Nov 2018 16:28:53 +0000 (17:28 +0100)
committerSascha Wildner <saw@online.de>
Fri, 2 Nov 2018 16:28:53 +0000 (17:28 +0100)
This caused confusion already in ACPICA bug reports with pathnames
containing backslashes.

Taken-from: NetBSD

sbin/dmesg/dmesg.c

index 5bbe2bc..7952a79 100644 (file)
@@ -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