@@ -60,7 +60,10 @@ void *utils_mmap_file(void *hint_addr, size_t length, int prot, int flags,
6060 return NULL ;
6161 }
6262
63- LOG_DEBUG ("file mapped with the MAP_PRIVATE flag" );
63+ LOG_DEBUG ("file mapped with the MAP_PRIVATE flag (fd=%i, offset=%zu, "
64+ "length=%zu)" ,
65+ fd , fd_offset , length );
66+
6467 return addr ;
6568 }
6669
@@ -72,7 +75,9 @@ void *utils_mmap_file(void *hint_addr, size_t length, int prot, int flags,
7275 addr = utils_mmap (hint_addr , length , prot , flags | sync_flags , fd ,
7376 fd_offset );
7477 if (addr ) {
75- LOG_DEBUG ("file mapped with the MAP_SYNC flag" );
78+ LOG_DEBUG ("file mapped with the MAP_SYNC flag (fd=%i, offset=%zu, "
79+ "length=%zu)" ,
80+ fd , fd_offset , length );
7681 return addr ;
7782 }
7883
@@ -85,7 +90,9 @@ void *utils_mmap_file(void *hint_addr, size_t length, int prot, int flags,
8590 const int shared_flags = (flags & (~MAP_SYNC )) | MAP_SHARED ;
8691 addr = utils_mmap (hint_addr , length , prot , shared_flags , fd , fd_offset );
8792 if (addr ) {
88- LOG_DEBUG ("file mapped with the MAP_SHARED flag" );
93+ LOG_DEBUG ("file mapped with the MAP_SHARED flag (fd=%i, "
94+ "offset=%zu, length=%zu)" ,
95+ fd , fd_offset , length );
8996 return addr ;
9097 }
9198
0 commit comments