From 685c183c3beca7c913c7010eb8979576bf1b7b17 Mon Sep 17 00:00:00 2001 From: Eric Weddington Date: Mon, 24 Feb 2003 17:27:38 +0000 Subject: [PATCH] Usage back to stderr. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@224 81a1dc3b-b13d-400b-aceb-764788c761c2 --- avrdude/main.c | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/avrdude/main.c b/avrdude/main.c index 29dea339..4fd8a6bb 100644 --- a/avrdude/main.c +++ b/avrdude/main.c @@ -72,27 +72,27 @@ int do_cycles; /* track erase-rewrite cycles */ */ void usage(void) { - printf( - "Usage: %s [options]\n" - "Options:\n" - " -p Required. Specify AVR device.\n" - " -C Specify location of configuration file.\n" - " -c Specify programmer type.\n" - " -P Specify connection port.\n" - " -F Override invalid signature check.\n" - " -e Perform a chip erase.\n" - " -m Memory type to operate on.\n" - " -i Write device. Specify an input file.\n" - " -o Read device. Specify an output file.\n" - " -f Specify the file format.\n" - " -n Do not write anything to the device.\n" - " -V Do not verify.\n" - " -t Enter terminal mode.\n" - " -E [,] List programmer exit specifications.\n" - " -v Verbose output. An additional -v can be added.\n" - " -? Display this usage.\n" - "\navrdude project: \n" - ,progname); + fprintf(stderr, + "Usage: %s [options]\n" + "Options:\n" + " -p Required. Specify AVR device.\n" + " -C Specify location of configuration file.\n" + " -c Specify programmer type.\n" + " -P Specify connection port.\n" + " -F Override invalid signature check.\n" + " -e Perform a chip erase.\n" + " -m Memory type to operate on.\n" + " -i Write device. Specify an input file.\n" + " -o Read device. Specify an output file.\n" + " -f Specify the file format.\n" + " -n Do not write anything to the device.\n" + " -V Do not verify.\n" + " -t Enter terminal mode.\n" + " -E [,] List programmer exit specifications.\n" + " -v Verbose output. -v -v for more.\n" + " -? Display this usage.\n" + "\navrdude project: \n" + ,progname); }