diff --git a/modules/chain/dap_chain_cell.c b/modules/chain/dap_chain_cell.c index 2916b0fe40050bb80c371b670d2be21a9af7d4ef..9ce2968863ff32246a721b225d9a72361992c4c0 100644 --- a/modules/chain/dap_chain_cell.c +++ b/modules/chain/dap_chain_cell.c @@ -524,7 +524,7 @@ 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 atom (%zu b) to file \"%s\", err %ld: \"%s\"", + log_it(L_ERROR, "Can't write atom (%zu b) to file \"%s\", err %d: \"%s\"", a_atom_size, a_cell->file_storage_path, errno, dap_strerror(errno) ); return -3; } diff --git a/modules/type/blocks/dap_chain_block_cache.c b/modules/type/blocks/dap_chain_block_cache.c index b329e6d7766029c87081174aaf429986602fc690..35bbb195ad5ae0d30bd8da2f10b269065313b8c1 100644 --- a/modules/type/blocks/dap_chain_block_cache.c +++ b/modules/type/blocks/dap_chain_block_cache.c @@ -114,7 +114,7 @@ int dap_chain_block_cache_update(dap_chain_block_cache_t *a_block_cache, dap_has else dap_hash_fast(a_block_cache->block, a_block_cache->block_size, &a_block_cache->block_hash); - dap_hash_fast_to_str(&a_block_cache->block_hash, &a_block_cache->block_hash_str, DAP_CHAIN_HASH_FAST_STR_SIZE); + dap_hash_fast_to_str(&a_block_cache->block_hash, a_block_cache->block_hash_str, DAP_CHAIN_HASH_FAST_STR_SIZE); if (dap_chain_block_meta_extract(a_block_cache->block, a_block_cache->block_size, &a_block_cache->prev_hash,