Convert printf_errf/dbgf in several files

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2018-12-20 16:54:51 +00:00
parent 3966491846
commit b5b0f4af7f
4 changed files with 15 additions and 14 deletions

View File

@ -4064,8 +4064,8 @@ write_binary_data(const char *path, const unsigned char *data, int length) {
int wrote_len = fwrite(data, sizeof(unsigned char), length, f);
fclose(f);
if (wrote_len != length) {
printf_errf("(\"%s\"): Failed to write all blocks: %d / %d", path,
wrote_len, length);
log_error("Failed to write all blocks: %d / %d to %s",
wrote_len, length, path);
return false;
}
return true;