opal-elog-parse: Move single-file operations into seperate functions.
opal-elog-parse: Move single-file operations into seperate functions.

Quick patch to improve the readability of eloglist and elog_summary, and reduces
the chance of forgetting a free in these functions.

Move some definitions around to make it more generic, and catch a
missing free in an error case

Remove global variables and Minor fixups.

[Patches fixup by Cyril]

Signed-off-by: Samuel Mendoza-Jonas <f16bed56189e249fe4ca8ed10a1ecae60e8ceac0@ozlabs.au.ibm.com>
Signed-off-by: Cyril Bur <6ce38dade8c4b52fd55c193fae70fd1d1275c3c3@au1.ibm.com>

leitao/ppc64-diag,leitao/ppc64-diag,leitao/ppc64-diag,leitao/ppc64-diag