From patchwork Fri May 25 10:40:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [7/8] lib: fwts_oops.c: add more comments Date: Fri, 25 May 2012 00:40:52 -0000 From: Colin King X-Patchwork-Id: 161285 Message-Id: <1337942453-30224-8-git-send-email-colin.king@canonical.com> To: fwts-devel@lists.ubuntu.com From: Colin Ian King Signed-off-by: Colin Ian King Acked-by: Keng-Yu Lin Acked-by: Ivan Hu --- src/lib/src/fwts_oops.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/lib/src/fwts_oops.c b/src/lib/src/fwts_oops.c index 888bb46..df9c3c7 100644 --- a/src/lib/src/fwts_oops.c +++ b/src/lib/src/fwts_oops.c @@ -33,6 +33,12 @@ (FWTS_OOPS_GOT_OOPS | FWTS_OOPS_GOT_STACK | FWTS_OOPS_GOT_CALL_TRACE | FWTS_OOPS_GOT_END_TRACE) +/* + * fwts_oops_dump() + * for a given item in a kernel log list, scan for an oops message and + * if we find an oops message increment 'oopses' and dump out the oops + * message to the fwts log + */ void fwts_oops_dump(fwts_framework *fw, fwts_list_link *bug_item, int *oopses) { fwts_list_link *item = bug_item; @@ -82,6 +88,12 @@ void fwts_oops_dump(fwts_framework *fw, fwts_list_link *bug_item, int *oopses) } } +/* + * fwts_oos_check() + * scan kernel log list for any oops messages. The number of oops + * messages found is returned in 'oopses'. Oops messages are logged to the + * fwts log. + */ int fwts_oops_check(fwts_framework *fw, fwts_list *klog, int *oopses) { fwts_list_link *item;