summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7392d12)
Some times the serial output contains incorrect entries, typically in
the beginning of log acquicition. Discard them so that they don't
clutter the log output.
Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
+ if (strlen(buf) < 5) {
+ pr_debug("discarding truncated log entry\n");
+ offset = 0;
+ continue;
+ }
+
cur_time = time(NULL);
pr_info("%s\n", buf);
cur_time = time(NULL);
pr_info("%s\n", buf);