From: mquinson Date: Fri, 11 Feb 2005 14:34:02 +0000 (+0000) Subject: Continuation of the long double->double convertion X-Git-Tag: v3.3~4372 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/65b5f868cc0f3c9ae249b5b0928b8d8d93427b19 Continuation of the long double->double convertion git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@979 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/examples/msg/messages.h b/examples/msg/messages.h index d20303350f..0508c142d8 100644 --- a/examples/msg/messages.h +++ b/examples/msg/messages.h @@ -32,7 +32,7 @@ static void ASSERT(int value, const char *fmt, ...) if(!value) { va_start(ap, fmt); if (self) - fprintf(stderr, "[%Lg] P%d | ", MSG_getClock(), + fprintf(stderr, "[%g] P%d | ", MSG_getClock(), MSG_process_get_PID(self)); vfprintf(stderr, fmt, ap); va_end(ap); @@ -53,7 +53,7 @@ static void DIE(const char *fmt, ...) va_start(ap, fmt); if (self) - fprintf(stderr, "[%Lg] P%d | ", MSG_getClock(), + fprintf(stderr, "[%g] P%d | ", MSG_getClock(), MSG_process_get_PID(self)); vfprintf(stderr, fmt, ap); va_end(ap); @@ -74,7 +74,7 @@ static void PRINT_MESSAGE(const char *fmt, ...) va_start(ap, fmt); if (self) - fprintf(stderr, "[%Lg] P%d | (%s:%s) ", MSG_getClock(), + fprintf(stderr, "[%g] P%d | (%s:%s) ", MSG_getClock(), MSG_process_get_PID(self), MSG_host_self()->name, self->name); vfprintf(stderr, fmt, ap); va_end(ap); @@ -93,7 +93,7 @@ static void PRINT_DEBUG_MESSAGE(const char *fmt, ...) va_start(ap, fmt); if (self) - fprintf(stderr, "DEBUG [%Lg] P%d | (%s) ", MSG_getClock(), + fprintf(stderr, "DEBUG [%g] P%d | (%s) ", MSG_getClock(), MSG_process_get_PID(self), MSG_host_self()->name); vfprintf(stderr, fmt, ap); va_end(ap); diff --git a/examples/msg/msg_test.c b/examples/msg/msg_test.c index 96705fccfa..c4a894d716 100644 --- a/examples/msg/msg_test.c +++ b/examples/msg/msg_test.c @@ -235,7 +235,7 @@ void test_all(const char *platform_file,const char *application_file) MSG_launch_application(application_file); } MSG_main(); - printf("Simulation time %Lg\n",MSG_getClock()); + printf("Simulation time %g\n",MSG_getClock()); }