powerpc/powernv: Report size of OPAL memcons log
commit14a41d6b7572026cf8fc88ee72e81b6b40db2ec0
authorJoel Stanley <joel@jms.id.au>
Fri, 13 Jan 2017 03:53:49 +0000 (13 14:23 +1030)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 25 Jan 2017 02:33:55 +0000 (25 13:33 +1100)
tree3774df6ebd4a306fa11a35a6e3e8c9c850a650f1
parent8ad43336b5c1ad9ac945148cb5e26a1200ccd45c
powerpc/powernv: Report size of OPAL memcons log

The OPAL memory console is reported to be size zero, as we do not
initialise the struct attr with any size information due to the size
being variable. This leads users to think that the console is empty.

Instead report the maximum size.

Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal-msglog.c