Searched refs:ERRBREAK (Results 1 - 1 of 1) sorted by relevance

/openwrt/tools/firmware-utils/src/
H A Dseama.c196 #define ERRBREAK(fmt, args...) { if (msg) printf(fmt, ##args); break; } macro
200 if (stat(fname, &st) < 0) ERRBREAK("Unable to get the info of '%s'\n",fname);
201 if ((fh = fopen(fname, "r+"))==NULL) ERRBREAK("Unable to open '%s' for reading!\n",fname);
213 if (shdr.magic != htonl(SEAMA_MAGIC)) ERRBREAK("Invalid SEAMA magic. Probably no more SEAMA!\n");
223 ERRBREAK("Error reading checksum !\n");
227 if (msize > sizeof(buf)) ERRBREAK("META data in SEAMA header is too large!\n");
231 ERRBREAK("Unable to read SEAMA META data!\n");
263 if (memcmp(checksum, digest, 16)!=0) ERRBREAK("!!ERROR!! checksum error !!\n");

Completed in 27 milliseconds