From 500c9be5249290f0c00bfab4877bf074c6caeeb7 Mon Sep 17 00:00:00 2001 From: Constantin P <papizh.konstantin@demlabs.net> Date: Thu, 8 Aug 2024 00:36:42 +0700 Subject: [PATCH] Ext error output --- modules/chain/dap_chain_cell.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/chain/dap_chain_cell.c b/modules/chain/dap_chain_cell.c index 674bc9c76a..2916b0fe40 100644 --- a/modules/chain/dap_chain_cell.c +++ b/modules/chain/dap_chain_cell.c @@ -524,9 +524,8 @@ static int s_cell_file_atom_add(dap_chain_cell_t *a_cell, dap_chain_atom_ptr_t a return -2; } if (fwrite(a_atom, a_atom_size, 1, a_cell->file_storage) != 1) { - log_it (L_ERROR, "Can't write data from cell 0x%016"DAP_UINT64_FORMAT_X" to the file \"%s\"", - a_cell->id.uint64, - a_cell->file_storage_path); + log_it(L_ERROR, "Can't write atom (%zu b) to file \"%s\", err %ld: \"%s\"", + a_atom_size, a_cell->file_storage_path, errno, dap_strerror(errno) ); return -3; } debug_if (s_debug_more && a_cell->chain->is_mapped, L_DEBUG, "After writing an atom of size %lu, stream pos of %s is %lu and map shift is %lu", -- GitLab