Fix typos. Fix error messages.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@191 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
46233d2241
commit
3e50ea8b45
20
stk500.c
20
stk500.c
|
@ -385,7 +385,7 @@ static int stk500_program_enable(PROGRAMMER * pgm, AVRPART * p)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr, "%s: stk500_program_enamble(): unkown response=0x%02x\n",
|
fprintf(stderr, "%s: stk500_program_enable(): unkown response=0x%02x\n",
|
||||||
progname, buf[0]);
|
progname, buf[0]);
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -558,7 +558,7 @@ static void stk500_disable(PROGRAMMER * pgm)
|
||||||
stk500_recv(pgm, buf, 1);
|
stk500_recv(pgm, buf, 1);
|
||||||
if (buf[0] == Resp_STK_NOSYNC) {
|
if (buf[0] == Resp_STK_NOSYNC) {
|
||||||
if (tries > 33) {
|
if (tries > 33) {
|
||||||
fprintf(stderr, "%s: stk500_program_enable(): can't get into sync\n",
|
fprintf(stderr, "%s: stk500_disable(): can't get into sync\n",
|
||||||
progname);
|
progname);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -567,8 +567,8 @@ static void stk500_disable(PROGRAMMER * pgm)
|
||||||
}
|
}
|
||||||
else if (buf[0] != Resp_STK_INSYNC) {
|
else if (buf[0] != Resp_STK_INSYNC) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"%s: stk500_initialize(): (a) protocol error, "
|
"%s: stk500_disable(): protocol error, expect=0x%02x, "
|
||||||
"expect=0x%02x, resp=0x%02x\n",
|
"resp=0x%02x\n",
|
||||||
progname, Resp_STK_INSYNC, buf[0]);
|
progname, Resp_STK_INSYNC, buf[0]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -578,12 +578,12 @@ static void stk500_disable(PROGRAMMER * pgm)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (buf[0] == Resp_STK_NODEVICE) {
|
else if (buf[0] == Resp_STK_NODEVICE) {
|
||||||
fprintf(stderr, "%s: stk500_program_enable(): no device\n",
|
fprintf(stderr, "%s: stk500_disable(): no device\n",
|
||||||
progname);
|
progname);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr, "%s: stk500_program_enamble(): unkown response=0x%02x\n",
|
fprintf(stderr, "%s: stk500_disable(): unkown response=0x%02x\n",
|
||||||
progname, buf[0]);
|
progname, buf[0]);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
@ -922,7 +922,7 @@ static int stk500_getparm(PROGRAMMER * pgm, unsigned parm, unsigned * value)
|
||||||
stk500_recv(pgm, buf, 1);
|
stk500_recv(pgm, buf, 1);
|
||||||
if (buf[0] == Resp_STK_NOSYNC) {
|
if (buf[0] == Resp_STK_NOSYNC) {
|
||||||
if (tries > 33) {
|
if (tries > 33) {
|
||||||
fprintf(stderr, "\n%s: getparm(): can't get into sync\n",
|
fprintf(stderr, "\n%s: stk500_getparm(): can't get into sync\n",
|
||||||
progname);
|
progname);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -931,7 +931,7 @@ static int stk500_getparm(PROGRAMMER * pgm, unsigned parm, unsigned * value)
|
||||||
}
|
}
|
||||||
else if (buf[0] != Resp_STK_INSYNC) {
|
else if (buf[0] != Resp_STK_INSYNC) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"\n%s: getparm(): (a) protocol error, "
|
"\n%s: stk500_getparm(): (a) protocol error, "
|
||||||
"expect=0x%02x, resp=0x%02x\n",
|
"expect=0x%02x, resp=0x%02x\n",
|
||||||
progname, Resp_STK_INSYNC, buf[0]);
|
progname, Resp_STK_INSYNC, buf[0]);
|
||||||
return -2;
|
return -2;
|
||||||
|
@ -943,13 +943,13 @@ static int stk500_getparm(PROGRAMMER * pgm, unsigned parm, unsigned * value)
|
||||||
stk500_recv(pgm, buf, 1);
|
stk500_recv(pgm, buf, 1);
|
||||||
if (buf[0] == Resp_STK_FAILED) {
|
if (buf[0] == Resp_STK_FAILED) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"\n%s: getparm(): parameter 0x%02x failed\n",
|
"\n%s: stk500_getparm(): parameter 0x%02x failed\n",
|
||||||
progname, v);
|
progname, v);
|
||||||
return -3;
|
return -3;
|
||||||
}
|
}
|
||||||
else if (buf[0] != Resp_STK_OK) {
|
else if (buf[0] != Resp_STK_OK) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"\n%s: getparm(): (a) protocol error, "
|
"\n%s: stk500_getparm(): (a) protocol error, "
|
||||||
"expect=0x%02x, resp=0x%02x\n",
|
"expect=0x%02x, resp=0x%02x\n",
|
||||||
progname, Resp_STK_INSYNC, buf[0]);
|
progname, Resp_STK_INSYNC, buf[0]);
|
||||||
return -3;
|
return -3;
|
||||||
|
|
Loading…
Reference in New Issue