From 1b99818a03b30dff2aee417889753fb24a271b87 Mon Sep 17 00:00:00 2001 From: "Brian S. Dean" Date: Fri, 21 Sep 2001 02:57:58 +0000 Subject: [PATCH] debugging git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@70 81a1dc3b-b13d-400b-aceb-764788c761c2 --- main.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.c b/main.c index 2c9ad0a2..69094cec 100644 --- a/main.c +++ b/main.c @@ -981,9 +981,16 @@ int main ( int argc, char * argv [] ) ppidata = 0; /* clear all bits at exit */ goto main_exit; } + + fprintf(stderr, "initial port data = 0x%02x, pins %s\n", + ppidata, vccpins_str(ppidata)); + ppidata &= ~ppiclrbits; ppidata |= ppisetbits; + fprintf(stderr, "apply exit specs, port data = 0x%02x, pins %s\n", + ppidata, vccpins_str(ppidata)); + /* * turn off all the status leds */ @@ -1190,6 +1197,8 @@ int main ( int argc, char * argv [] ) */ avr_powerdown(fd); + fprintf(stderr, "port data = 0x%02x, pins %s\n", + ppidata, vccpins_str(ppidata)); ppi_setall(fd, PPIDATA, ppidata); /*