@@ -60,7 +60,10 @@ void *utils_mmap_file(void *hint_addr, size_t length, int prot, int flags,
60
60
return NULL ;
61
61
}
62
62
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
+
64
67
return addr ;
65
68
}
66
69
@@ -72,7 +75,9 @@ void *utils_mmap_file(void *hint_addr, size_t length, int prot, int flags,
72
75
addr = utils_mmap (hint_addr , length , prot , flags | sync_flags , fd ,
73
76
fd_offset );
74
77
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 );
76
81
return addr ;
77
82
}
78
83
@@ -85,7 +90,9 @@ void *utils_mmap_file(void *hint_addr, size_t length, int prot, int flags,
85
90
const int shared_flags = (flags & (~MAP_SYNC )) | MAP_SHARED ;
86
91
addr = utils_mmap (hint_addr , length , prot , shared_flags , fd , fd_offset );
87
92
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 );
89
96
return addr ;
90
97
}
91
98
0 commit comments