From fbe43f1acc6fc7280b0efd230c3e86009f5a1c0d Mon Sep 17 00:00:00 2001 From: Timo Kokkonen Date: Sun, 3 Nov 2013 21:55:24 +0200 Subject: [PATCH] data.c: Reduce excess debug verbosity We trust now that the data parsing works. No need to print that many lines of debug print. Signed-off-by: Timo Kokkonen --- data.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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; -- 2.45.0