RE: [Patch]Fix reason_str of pstore so that it can work correctly

From: Seiji Aguchi
Date: Fri Mar 16 2012 - 09:38:45 EST


Hi,

Thank you for reviewing my patch.
I will update it in accordance with your comment.

Seiji

> It would be better to make it so it would not break e.g.
>
> static const char *get_reason_str(enum kmsg_dump_reason reason) {
> switch (reason) {
> KMSG_DUMP_PANIC:
> return "Panic";
> KMSG_DUMP_OOPS:
> return "Oops";
> KMSG_DUMP_EMERG:
> return "Emergency";
> KMSG_DUMP_RESTART:
> return "Restart";
> KMSG_DUMP_HALT:
> return "Halt";
> KMSG_DUMP_POWEROFF:
> return "Poweroff";
> default:
> return "Unknown";
> }
> }
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/