Compare commits
No commits in common. "e69243180ff863e9bfcb23ebaa77244a6e66fc8f" and "08deed9f6062cca6a6c4f2fb63ae0aaa60b130ac" have entirely different histories.
e69243180f
...
08deed9f60
1 changed files with 5 additions and 4 deletions
|
|
@ -30,11 +30,11 @@ const char help[] =
|
||||||
"\0";
|
"\0";
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
const char copyright[] = "Copyright (C) %s Imbus, BSD-2-Clause\n";
|
const char copyright[] = "Copyright (C) %s Imbus\n";
|
||||||
|
|
||||||
#define BUFSIZE (4 * 1024 * 1024)
|
#define BUFSIZE (4 * 1024 * 1024)
|
||||||
|
|
||||||
struct write_job {
|
typedef struct write_job {
|
||||||
char *filename;
|
char *filename;
|
||||||
char *dev_name;
|
char *dev_name;
|
||||||
char *buffer;
|
char *buffer;
|
||||||
|
|
@ -42,9 +42,9 @@ struct write_job {
|
||||||
size_t bufsize;
|
size_t bufsize;
|
||||||
size_t block_size;
|
size_t block_size;
|
||||||
char verify_only;
|
char verify_only;
|
||||||
} wjob = {0};
|
} write_job_t;
|
||||||
|
|
||||||
typedef struct write_job write_job_t;
|
write_job_t wjob = {0};
|
||||||
|
|
||||||
void int_handler(int signum) {
|
void int_handler(int signum) {
|
||||||
fprintf(stderr, "\nInterrupted: %s\n", strsignal(signum));
|
fprintf(stderr, "\nInterrupted: %s\n", strsignal(signum));
|
||||||
|
|
@ -156,6 +156,7 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
if (argc != 1) {
|
if (argc != 1) {
|
||||||
printf("You need to specify an image file.\n");
|
printf("You need to specify an image file.\n");
|
||||||
|
// printf("%s\n", help);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue