Searched refs:die (Results 1 – 1 of 1) sorted by relevance
34 void die(const char *msg, ...) { in die() function65 if (mtd_scan_partitions() <= 0) die("error scanning partitions"); in main()67 if (partition == NULL) die("can't find %s partition", argv[1]); in main()72 if (fd < 0) die("error opening %s", argv[2]); in main()76 if (headerlen <= 0) die("error reading %s header", argv[2]); in main()99 if (out == NULL) die("error writing %s", argv[1]); in main()104 if (wrote != headerlen) die("error writing %s", argv[1]); in main()109 if (wrote != len) die("error writing %s", argv[1]); in main()111 if (len < 0) die("error reading %s", argv[2]); in main()113 if (mtd_write_close(out)) die("error closing %s", argv[1]); in main()[all …]