[PATCH 1/2] getopt: turn commented out printf into debug()

Sascha Hauer s.hauer at pengutronix.de
Mon Feb 27 03:38:34 EST 2012


Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 lib/getopt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/getopt.c b/lib/getopt.c
index 64d6ac1..5c35ee1 100644
--- a/lib/getopt.c
+++ b/lib/getopt.c
@@ -47,7 +47,7 @@ int getopt(int argc, char *argv[], char *optstring)
 	char *curoptp; /* pointer to the current option in optstring */
 
 	while(1) {
-//		printf("optindex: %d nonopts: %d optind: %d\n", optindex, nonopts, optind);
+		debug("optindex: %d nonopts: %d optind: %d\n", optindex, nonopts, optind);
 
 		/* first put nonopts to the end */
 		while (optind + nonopts < argc && *argv[optind] != '-') {
-- 
1.7.9.1




More information about the barebox mailing list