X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cc01c6a871dbbfd0cc84e26eb9f94aeb539e613e..29a1d43bbc5cc9335fff14760d5d2b80dcd342ad:/examples/xbt/sem_basic.c diff --git a/examples/xbt/sem_basic.c b/examples/xbt/sem_basic.c index 1d944f7a1a..532a9720a7 100644 --- a/examples/xbt/sem_basic.c +++ b/examples/xbt/sem_basic.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2007. The SimGrid Team. +/* Copyright (c) 2007, 2010-2015. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -16,10 +16,10 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(sem_basic, -#define THREAD_THREADS_MAX ((unsigned int)10) +#define THREAD_THREADS_MAX ((unsigned int)10) /* - * the thread funtion. + * the thread function. */ void *thread_routine(void *param); @@ -64,7 +64,7 @@ int main(int argc, char *argv[]) xbt_os_sem_destroy(sem); - INFO1("sem_basic terminated with exit code %d (success)", EXIT_SUCCESS); + XBT_INFO("sem_basic terminated with exit code %d (success)", EXIT_SUCCESS); return EXIT_SUCCESS; @@ -76,9 +76,9 @@ void *thread_routine(void *param) int exit_code = 0; xbt_os_sem_acquire(sem); - INFO1("Hello i'm the thread %d", thread_index); + XBT_INFO("Hello i'm the thread %d", thread_index); value++; - INFO1("The new value of the global variable is %d, bye", value); + XBT_INFO("The new value of the global variable is %d, bye", value); xbt_os_sem_release(sem); xbt_os_thread_exit(&exit_code);