--- rpl/src/profilage.c 2013/03/21 11:30:31 1.41 +++ rpl/src/profilage.c 2013/03/21 12:07:38 1.42 @@ -312,8 +312,8 @@ ecriture_profil(struct_processus *s_etat } snprintf(nom, strlen(ds_rplprofile) + 64 + 1, - "%s-%lu-%lu", ds_rplprofile, (unsigned long) getpid(), - (unsigned long) pthread_self()); + "%s-%llu-%llu", ds_rplprofile, (unsigned long long) getpid(), + (unsigned long long) pthread_self()); if ((fichier = fopen(nom, "w+")) == NULL) { @@ -333,14 +333,14 @@ ecriture_profil(struct_processus *s_etat return; } - if (fprintf(fichier, "Process : %lu\n", (unsigned long) + if (fprintf(fichier, "Process : %llu\n", (unsigned long long) getpid()) < 0) { (*s_etat_processus).erreur_systeme = d_es_erreur_fichier; return; } - if (fprintf(fichier, "Thread : %lu\n", (unsigned long) + if (fprintf(fichier, "Thread : %llu\n", (unsigned long long) pthread_self()) < 0) { (*s_etat_processus).erreur_systeme = d_es_erreur_fichier;