]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
blockconsole: use CON_ALLDATA
authorJoern Engel <joern@logfs.org>
Wed, 20 Feb 2013 19:42:58 +0000 (11:42 -0800)
committerJoern Engel <joern@logfs.org>
Wed, 20 Feb 2013 19:42:58 +0000 (11:42 -0800)
Blockconsole should really see every message ever printed.  The
alternative is to try debugging with information like this:
[166135.633974] Stack:
[166135.634016] Call Trace:
[166135.634029]  <IRQ>
[166135.634156]  <EOI>
[166135.634177] Code: 00 00 55 48 89 e5 0f 1f 44 00 00 ff 15 31 49 80 00 c9 c3 66 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 0f 1f 44 00 00
[166135.634384]  48 8b 14 25 98 24 01 00 48 8d 14 92 48 8d 04 bd 00 00 00 00

Signed-off-by: Joern Engel <joern@logfs.org>
drivers/block/blockconsole.c

index 7f8ac5ba64154d876d76abaa2357ed6bebc03b89..32f6c62d5bde38cd0fec7430024f0b9d7d012a22 100644 (file)
@@ -481,7 +481,7 @@ static int bcon_create(const char *devname)
        strlcpy(bc->devname, devname, sizeof(bc->devname));
        spin_lock_init(&bc->end_io_lock);
        strcpy(bc->console.name, "bcon");
-       bc->console.flags = CON_PRINTBUFFER | CON_ENABLED;
+       bc->console.flags = CON_PRINTBUFFER | CON_ENABLED | CON_ALLDATA;
        bc->console.write = bcon_write;
        bc->bdev = blkdev_get_by_path(devname, mode, NULL);
 #ifndef MODULE