From 008b30e12cf03c2f8ea7d5622f9d8c50dae6a7b4 Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Wed, 17 May 2023 13:37:20 +0200 Subject: [PATCH] fix: add 0 to the print --- philo/print.c | 4 ++-- philo/print2.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/philo/print.c b/philo/print.c index 7eb190a..e53feba 100644 --- a/philo/print.c +++ b/philo/print.c @@ -6,7 +6,7 @@ /* By: cchauvet print_mutex); } diff --git a/philo/print2.c b/philo/print2.c index f597e66..749c985 100644 --- a/philo/print2.c +++ b/philo/print2.c @@ -6,7 +6,7 @@ /* By: cchauvet data; time = get_time(); pthread_mutex_lock(&data->print_mutex); - printf("%7zu %3zu %s\n", time, philo->id, "died"); + printf("%07zu %03zu %s\n", time, philo->id + 1, "died"); pthread_mutex_unlock(&data->print_mutex); }