mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-23 09:36:24 +03:00
Remove unused avrdude_message()
This commit is contained in:
@@ -40,7 +40,6 @@ extern int quell_progress; // Quell progress report -q, reduce effective verbo
|
||||
extern const char *partdesc; // Part -p string
|
||||
extern const char *pgmid; // Programmer -c string
|
||||
|
||||
int avrdude_message(int msglvl, const char *format, ...);
|
||||
int avrdude_message2(FILE *fp, int lno, const char *file, const char *func, int msgmode, int msglvl, const char *format, ...);
|
||||
|
||||
#define MSG_EXT_ERROR (-3) // OS-type error, no -v option, can be suppressed with -qqqqq
|
||||
|
||||
13
src/main.c
13
src/main.c
@@ -57,19 +57,6 @@ char progbuf[PATH_MAX]; /* temporary buffer of spaces the same
|
||||
length as progname; used for lining up
|
||||
multiline messages */
|
||||
|
||||
// Old (deprecated) message routine
|
||||
int avrdude_message(int msglvl, const char *format, ...)
|
||||
{
|
||||
int rc = 0;
|
||||
va_list ap;
|
||||
if (verbose >= msglvl) {
|
||||
va_start(ap, format);
|
||||
rc = vfprintf(stderr, format, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
||||
static const char *avrdude_message_type(int msglvl) {
|
||||
switch(msglvl) {
|
||||
case MSG_EXT_ERROR: return "OS error";
|
||||
|
||||
Reference in New Issue
Block a user