]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
kdump: append newline to the last lien of vmcoreinfo note
authorVivek Goyal <vgoyal@redhat.com>
Sat, 21 Jul 2012 00:55:12 +0000 (10:55 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 31 Jul 2012 04:25:00 +0000 (14:25 +1000)
commit5ce101d9d1746c4e0b69d90281623b3407d693b1
treee7fb39cb9935c314a0447137767046ebdc74a6d9
parent6a3d0c10342ca9c471a45316f0e5d1f9ccd03399
kdump: append newline to the last lien of vmcoreinfo note

The last line of vmcoreinfo note does not end with \n.  Parsing all the
lines in note becomes easier if all lines end with \n instead of trying to
special case the last line.

I know at least one tool, vmcore-dmesg in kexec-tools tree which made the
assumption that all lines end with \n.  I think it is a good idea to fix
it.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Atsushi Kumagai <kumagai-atsushi@mxc.nes.nec.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/kexec.c