This is mainly for testing the Chrome OS warning collection
and analysis tools.
BUG=chromium:227080
TEST=manually tested
Change-Id: I0a99d2f87cf1e1354a0feaf3cd5386396d7da381
Signed-off-by: Luigi Semenzato <semenzato@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/49488
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Olof Johansson <olofj@chromium.org>
/* BUG() */
else if (!strcmp(kbuf, "bug"))
BUG();
+ /* Warning, normally not a crash */
+ else if (!strcmp(kbuf, "warning"))
+ WARN_ON(1);
/* hung_task stuck in unkillable D state */
else if (!strcmp(kbuf, "hungtask"))
schedule_timeout_uninterruptible(MAX_SCHEDULE_TIMEOUT);