summaryrefslogtreecommitdiffstats
path: root/hw/lpc-uart.c
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>2015-07-28 14:31:31 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-07-31 15:32:42 +1000
commit56b7f5113e3469620c5a1f8994550c5d72f571a8 (patch)
tree3cdea0c1b7db95938c23b643b90585e38f2326f2 /hw/lpc-uart.c
parent9949f7cbfe8ae1a92f0e9bb3f6ebe0e8770c6d71 (diff)
downloadtalos-skiboot-56b7f5113e3469620c5a1f8994550c5d72f571a8.tar.gz
talos-skiboot-56b7f5113e3469620c5a1f8994550c5d72f571a8.zip
errorlog: Simplify log calling convention
Remove the callback functionality from log_error() and replace it with the ability to append to a user data section, or add addtional user data sections to an error log. For multiline or otherwise complex logging the convention is now to call opal_elog_create() to obtain a errorlog buffer and use log_append_msg() and log_append_data() to append to the user data section. Additional user data sections can be added to the error log via log_add_section(). The caller is then responsible for calling log_commit(). For simple logs log_simple_error() takes care of creating and committing the error log as before. Signed-off-by: Samuel Mendoza-Jonas <sam.mj@au1.ibm.com> Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/lpc-uart.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud