From 6148d6effe72a458e1d2ab81260f7ef321a2d996 Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Wed, 19 Apr 2023 14:05:21 +0000 Subject: [PATCH] change: 'is dead' -> 'dead' and ' 10' -> '000000010' --- print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/print.c b/print.c index f50192e..b43916c 100644 --- a/print.c +++ b/print.c @@ -19,7 +19,7 @@ static void print(t_data *data, size_t id, char *str) pthread_mutex_unlock(&data->stop_mutex); time = get_time(); pthread_mutex_lock(&print_mutex); - printf("%6zu %3zu %s\n", time, id, str); + printf("%07zu %3zu %s\n", time, id + 1, str); pthread_mutex_unlock(&print_mutex); } @@ -45,5 +45,5 @@ void print_thinking(t_philo *philo) void print_died(t_philo *philo) { - print(philo->data, philo->id, "is died"); + print(philo->data, philo->id, "died"); }