X-Git-Url: http://git.itanic.dy.fi/?p=log-plotter;a=blobdiff_plain;f=data.c;fp=data.c;h=b663cd50f5daed521764504e38f1f9646a00635f;hp=81a8345743d4552109fd2950161d9a461d090c69;hb=fbe43f1acc6fc7280b0efd230c3e86009f5a1c0d;hpb=9abf935040bd368c4b3c1828a79691d200fd45a9 diff --git a/data.c b/data.c index 81a8345..b663cd5 100644 --- a/data.c +++ b/data.c @@ -80,8 +80,6 @@ static int parse_logline(const char *buf, struct charger_data *data) entry_count = separate_entries(str, entries, ARRAY_SIZE(entries)); - pr_debug("Entry count: %d\n", entry_count); - init_data(data); if (entries[0][0] != '$') { @@ -89,9 +87,6 @@ static int parse_logline(const char *buf, struct charger_data *data) goto out; } - for (i = 0; i < entry_count; i++) - pr_debug("Entry %d: data: %s\n", i, entries[i]); - i = 0; entries[i]++; /* discard the dollar sign */ data->channel = atoi(entries[i++]); @@ -260,7 +255,6 @@ static int read_data(struct eventhandler_entry *h) dt = container_of(h, struct dataparser_struct, evhandler); ret = read_log_line(dt->infd, dt->buf, sizeof(dt->buf), &dt->offset); - pr_debug("Line now %d: %s\n", dt->offset, dt->buf); if (ret <= 0) return ret; @@ -286,7 +280,8 @@ static int read_data(struct eventhandler_entry *h) print_status_line(&data); - dump_data(&data); + if (0) + dump_data(&data); if (!dt->outfd) return 0;