Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
f3c8f164
Commit
f3c8f164
authored
Nov 08, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmap: fix debug message formats
parent
dfbad7be
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
modules/access/mmap.c
modules/access/mmap.c
+5
-5
No files found.
modules/access/mmap.c
View file @
f3c8f164
...
...
@@ -197,7 +197,7 @@ static block_t *Block (access_t *p_access)
#ifdef MMAP_DEBUG
int64_t
dbgpos
=
lseek
(
p_sys
->
fd
,
0
,
SEEK_CUR
);
if
(
dbgpos
!=
p_access
->
info
.
i_pos
)
msg_Err
(
p_access
,
"position: 0x%0
8llx instead of 0x%08llx"
,
msg_Err
(
p_access
,
"position: 0x%0
16"
PRIx64
" instead of 0x%016"
PRIx64
,
p_access
->
info
.
i_pos
,
dbgpos
);
#endif
...
...
@@ -243,16 +243,16 @@ static block_t *Block (access_t *p_access)
block
->
i_buffer
-=
inner_offset
;
#ifdef MMAP_DEBUG
msg_Dbg
(
p_access
,
"mapped 0x%
lx bytes at %p from offset 0x%lx"
,
(
unsigned
long
)
length
,
addr
,
(
unsigned
long
)
outer_offset
);
msg_Dbg
(
p_access
,
"mapped 0x%
zx bytes at %p from offset 0x%"
PRIx64
,
length
,
addr
,
(
uint64_t
)
outer_offset
);
/* Compare normal I/O with memory mapping */
char
*
buf
=
malloc
(
block
->
i_buffer
);
ssize_t
i_read
=
read
(
p_sys
->
fd
,
buf
,
block
->
i_buffer
);
if
(
i_read
!=
(
ssize_t
)
block
->
i_buffer
)
msg_Err
(
p_access
,
"read %
u instead of %u bytes"
,
(
unsigned
)
i_read
,
(
unsigned
)
block
->
i_buffer
);
msg_Err
(
p_access
,
"read %
zd instead of %zu bytes"
,
i_read
,
block
->
i_buffer
);
if
(
memcmp
(
buf
,
block
->
p_buffer
,
block
->
i_buffer
))
msg_Err
(
p_access
,
"inconsistent data buffer"
);
free
(
buf
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment