Changeset d9a7620aa541dca4e0e29c7ab1af2653f7723bac
- Timestamp:
- 03/02/08 09:48:28
(6 months ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1204447708 +0200
- git-parent:
[1db7c22385c1673e5aa5c30d59d7d023fcb29a53]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1204409860 +0200
- Message:
Remove the mmap debugging for now.
Signed-off-by: Rémi Denis-Courmont <rem@videolan.org>
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r8a72788 |
rd9a7620 |
|
| 43 | 43 | "Try to use memory mapping to read files and block devices." ) |
|---|
| 44 | 44 | |
|---|
| | 45 | #ifndef NDEBUG |
|---|
| | 46 | /*# define MMAP_DEBUG 1*/ |
|---|
| | 47 | #endif |
|---|
| | 48 | |
|---|
| 45 | 49 | static int Open (vlc_object_t *); |
|---|
| 46 | 50 | static void Close (vlc_object_t *); |
|---|
| … | … | |
| 180 | 184 | } |
|---|
| 181 | 185 | |
|---|
| 182 | | #ifndef NDEBUG |
|---|
| | 186 | #ifdef MMAP_DEBUG |
|---|
| 183 | 187 | int64_t dbgpos = lseek (p_sys->fd, 0, SEEK_CUR); |
|---|
| 184 | 188 | if (dbgpos != p_access->info.i_pos) |
|---|
| … | … | |
| 226 | 230 | block->i_buffer -= inner_offset; |
|---|
| 227 | 231 | |
|---|
| 228 | | #ifndef NDEBUG |
|---|
| | 232 | #ifdef MMAP_DEBUG |
|---|
| 229 | 233 | msg_Dbg (p_access, "mapped 0x%lx bytes at %p from offset 0x%lx", |
|---|
| 230 | 234 | (unsigned long)length, addr, (unsigned long)outer_offset); |
|---|
| … | … | |
| 249 | 253 | static int Seek (access_t *p_access, int64_t i_pos) |
|---|
| 250 | 254 | { |
|---|
| 251 | | #ifndef NDEBUG |
|---|
| | 255 | #ifdef MMAP_DEBUG |
|---|
| 252 | 256 | lseek (p_access->p_sys->fd, i_pos, SEEK_SET); |
|---|
| 253 | 257 | #endif |
|---|