mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-27 19:46:21 +03:00
Move debug command line line after opening the log file
This commit is contained in:
@@ -928,10 +928,6 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
}
|
||||
|
||||
msg_debug("$ "); // Record command line when debugging
|
||||
for(int i = 0; i < argc; i++)
|
||||
msg_debug("%s%c", str_ccsharg(argv[i]), i == argc - 1? '\n': ' ');
|
||||
|
||||
if(logfile != NULL) {
|
||||
FILE *newstderr = freopen(logfile, "w", stderr);
|
||||
|
||||
@@ -942,6 +938,10 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
}
|
||||
|
||||
msg_debug("$ "); // Record command line
|
||||
for(int i = 0; i < argc; i++)
|
||||
msg_debug("%s%c", str_ccsharg(argv[i]), i == argc - 1? '\n': ' ');
|
||||
|
||||
size_t ztest;
|
||||
|
||||
if(1 != sscanf("42", "%zi", &ztest) || ztest != 42)
|
||||
|
||||
Reference in New Issue
Block a user