[PATCH 7/8] lib: fwts_oops.c: add more comments
Colin King
colin.king at canonical.com
Fri May 25 10:40:52 UTC 2012
From: Colin Ian King <colin.king at canonical.com>
Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
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;
--
1.7.10
More information about the fwts-devel
mailing list