From 2bf10504d5070e90118cb571e21877abf48ec2f6 Mon Sep 17 00:00:00 2001 From: starnakin Date: Wed, 31 Jul 2024 13:57:01 +0200 Subject: [PATCH] print error on stderr --- src/chunk_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chunk_manager.c b/src/chunk_manager.c index fe0a90a..192769c 100644 --- a/src/chunk_manager.c +++ b/src/chunk_manager.c @@ -10,7 +10,7 @@ void chunk_merge(chunk_t *first, chunk_t *second) { #ifndef DEBUG if (first->block_id != second->block_id) - putstr("Attempt merge two chunk on different block\n"); + write(2, "Attempt merge two chunk on different block\n", 43); #endif first->size = second->data_start - first->data_start + second->size; first->next = second->next;