Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Take size into account when building a unique name.
authorpini <pini@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 23 Sep 2010 09:14:04 +0000 (09:14 +0000)
committerpini <pini@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 23 Sep 2010 09:14:04 +0000 (09:14 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8203 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/smpi/smpi_bench.c

index 4792346..113121d 100644 (file)
@@ -124,7 +124,7 @@ void smpi_do_once_3()
 */
 
 void* smpi_shared_malloc(size_t size, const char* file, int line) {
-   char* loc = bprintf("%s:%d", file, line);
+   char* loc = bprintf("%s:%d:%zu", file, line, size);
    shared_data_t* data;
 
    if (!allocs) {