]> sourceware.org Git - systemtap.git/commit
make STP_OOB_DATA treatment more stringent
authorJonathan Lebon <jlebon@redhat.com>
Thu, 4 Jul 2013 20:55:28 +0000 (16:55 -0400)
committerJonathan Lebon <jlebon@redhat.com>
Fri, 5 Jul 2013 13:43:51 +0000 (09:43 -0400)
commit714f63a8395ad8ed491ad2c64fc73172af7b6733
treeb1a2606abdf8282dd1623df8c02a6dc2562efff6
parentd71c466354c5d73f9367095161aea51e4e3baf64
make STP_OOB_DATA treatment more stringent

Since all STP_OOB_DATA originally comes from _stp_vlog() in
runtime/linux/io.c, we can be sure that all warnings will be prefixed
by "WARNING: " and all errors by "ERROR: ", as defined by WARN_STRING
ERR_STRING in io.c.

Therefore, we can be more stringent in control.c and mainloop.c in the
way we identify warnings and errors. Additionally, warnings can instead
use the warn() macro and errors the err() macro so that they benefit
from coloring.

The main effect of this patch is that all calls to _stp_warn() and
_stp_error() will be colored upon reception by stapio.
runtime/transport/control.c
staprun/mainloop.c
This page took 0.029108 seconds and 5 git commands to generate.