From 642c7e42e09fa3b8473ed503c6f7de03bce83357 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 22 Feb 2011 08:35:19 +0000 Subject: [PATCH] make debug logging a bit more verbose by showing people what is being parsed git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1891 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- urjtag/ChangeLog | 2 ++ urjtag/src/global/parse.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/urjtag/ChangeLog b/urjtag/ChangeLog index 6ffa0f17..269fc30d 100644 --- a/urjtag/ChangeLog +++ b/urjtag/ChangeLog @@ -7,6 +7,8 @@ * src/global/parse.c (urj_parse_stream): Do not call "quit" when we hit the end of a stream. Simply return success so we can handle nested cases. + * src/global/parse.c (urj_parse_line): Include the line when debugging. + 2011-02-21 Mike Frysinger * data/Makefile.am (nobase_dist_pkgdata_DATA): Add missing analog/bfin/bfin. diff --git a/urjtag/src/global/parse.c b/urjtag/src/global/parse.c index a9680ab7..fc0879d0 100644 --- a/urjtag/src/global/parse.c +++ b/urjtag/src/global/parse.c @@ -163,7 +163,8 @@ urj_parse_line (urj_chain_t *chain, const char *line) return r; r = urj_cmd_run (chain, a); - urj_log (URJ_LOG_LEVEL_DEBUG, "Return in urj_parse_line r=%d\n", r); + urj_log (URJ_LOG_LEVEL_DEBUG, "Return in urj_parse_line r=%d line={%s}\n", + r, line); urj_tokens_free (a);