]> git.ipfire.org Git - thirdparty/util-linux.git/commit
dmesg: fragment concatenation
authorVinnie Magro <vmagro@fb.com>
Mon, 19 Jun 2017 21:45:02 +0000 (14:45 -0700)
committerKarel Zak <kzak@redhat.com>
Tue, 20 Jun 2017 09:26:23 +0000 (11:26 +0200)
commit22eb2f0190d8a9850da750641439ccd284ac0bfe
treed96162da7a4cbfd97ea8264b6b5785f63f172d49
parenteba71dd06cfa32b53151bb6808e2f4d330bf062a
dmesg: fragment concatenation

When extended console is enabled, the kernel doesn't internally
concatenate message fragments, this change adds log fragment
concatenation to dmesg: instead of being printed as separate messages,
fragments are combined onto one line and printed with the timestamp of
the first line.

This doesn't work in all cases - such as if another message is logged in
between two fragment lines, but in this case the behavior matches the
previous output format (printed on the separate lines).

[kzak@redhat.com: - rename kmsg_read_buf to kmsg_saved_size,
                  - minor coding style fixes]

Signed-off-by: Vinnie Magro <vmagro@fb.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/dmesg.c