Changeset d9a7620aa541dca4e0e29c7ab1af2653f7723bac

Show
Ignore:
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
  • modules/access/mmap.c

    r8a72788 rd9a7620  
    4343    "Try to use memory mapping to read files and block devices." ) 
    4444 
     45#ifndef NDEBUG 
     46/*# define MMAP_DEBUG 1*/ 
     47#endif 
     48 
    4549static int Open (vlc_object_t *); 
    4650static void Close (vlc_object_t *); 
     
    180184    } 
    181185 
    182 #ifndef NDEBUG 
     186#ifdef MMAP_DEBUG 
    183187    int64_t dbgpos = lseek (p_sys->fd, 0, SEEK_CUR); 
    184188    if (dbgpos != p_access->info.i_pos) 
     
    226230    block->i_buffer -= inner_offset; 
    227231 
    228 #ifndef NDEBUG 
     232#ifdef MMAP_DEBUG 
    229233    msg_Dbg (p_access, "mapped 0x%lx bytes at %p from offset 0x%lx", 
    230234             (unsigned long)length, addr, (unsigned long)outer_offset); 
     
    249253static int Seek (access_t *p_access, int64_t i_pos) 
    250254{ 
    251 #ifndef NDEBUG 
     255#ifdef MMAP_DEBUG 
    252256    lseek (p_access->p_sys->fd, i_pos, SEEK_SET); 
    253257#endif