Skip to content

Commit 306e5c2

Browse files
geliangtangaegl
authored andcommitted
pstore: fix code comment to match code
Fix code comment about kmsg_dump register so it matches the code. Signed-off-by: Geliang Tang <[email protected]> Signed-off-by: Tony Luck <[email protected]>
1 parent a07e744 commit 306e5c2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

fs/pstore/platform.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,9 @@ static struct kmsg_dumper pstore_dumper = {
361361
.dump = pstore_dump,
362362
};
363363

364+
/*
365+
* Register with kmsg_dump to save last part of console log on panic.
366+
*/
364367
static void pstore_register_kmsg(void)
365368
{
366369
kmsg_dump_register(&pstore_dumper);
@@ -434,8 +437,6 @@ static int pstore_write_compat(enum pstore_type_id type,
434437
* read function right away to populate the file system. If not
435438
* then the pstore mount code will call us later to fill out
436439
* the file system.
437-
*
438-
* Register with kmsg_dump to save last part of console log on panic.
439440
*/
440441
int pstore_register(struct pstore_info *psi)
441442
{

0 commit comments

Comments
 (0)