Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
25393e39
Commit
25393e39
authored
Oct 03, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The behavior of "%p" varies. We prefer "0x%lx".
parent
e6eef5c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
vio/viosocket.c
vio/viosocket.c
+7
-7
No files found.
vio/viosocket.c
View file @
25393e39
...
...
@@ -33,7 +33,7 @@ int vio_read(Vio * vio, gptr buf, int size)
{
int
r
;
DBUG_ENTER
(
"vio_read"
);
DBUG_PRINT
(
"enter"
,
(
"sd: %d, buf: 0x%
p
, size: %d"
,
vio
->
sd
,
buf
,
size
));
DBUG_PRINT
(
"enter"
,
(
"sd: %d, buf: 0x%
lx
, size: %d"
,
vio
->
sd
,
buf
,
size
));
/* Ensure nobody uses vio_read_buff and vio_read simultaneously */
DBUG_ASSERT
(
vio
->
read_end
==
vio
->
read_pos
);
...
...
@@ -64,7 +64,7 @@ int vio_read_buff(Vio *vio, gptr buf, int size)
int
rc
;
#define VIO_UNBUFFERED_READ_MIN_SIZE 2048
DBUG_ENTER
(
"vio_read_buff"
);
DBUG_PRINT
(
"enter"
,
(
"sd: %d, buf: 0x%
p
, size: %d"
,
vio
->
sd
,
buf
,
size
));
DBUG_PRINT
(
"enter"
,
(
"sd: %d, buf: 0x%
lx
, size: %d"
,
vio
->
sd
,
buf
,
size
));
if
(
vio
->
read_pos
<
vio
->
read_end
)
{
...
...
@@ -102,7 +102,7 @@ int vio_write(Vio * vio, const gptr buf, int size)
{
int
r
;
DBUG_ENTER
(
"vio_write"
);
DBUG_PRINT
(
"enter"
,
(
"sd: %d, buf: 0x%
p
, size: %d"
,
vio
->
sd
,
buf
,
size
));
DBUG_PRINT
(
"enter"
,
(
"sd: %d, buf: 0x%
lx
, size: %d"
,
vio
->
sd
,
buf
,
size
));
#ifdef __WIN__
r
=
send
(
vio
->
sd
,
buf
,
size
,
0
);
#else
...
...
@@ -397,7 +397,7 @@ int vio_read_pipe(Vio * vio, gptr buf, int size)
{
DWORD
length
;
DBUG_ENTER
(
"vio_read_pipe"
);
DBUG_PRINT
(
"enter"
,
(
"sd: %d, buf: 0x%
p
, size: %d"
,
vio
->
sd
,
buf
,
size
));
DBUG_PRINT
(
"enter"
,
(
"sd: %d, buf: 0x%
lx
, size: %d"
,
vio
->
sd
,
buf
,
size
));
if
(
!
ReadFile
(
vio
->
hPipe
,
buf
,
size
,
&
length
,
NULL
))
DBUG_RETURN
(
-
1
);
...
...
@@ -411,7 +411,7 @@ int vio_write_pipe(Vio * vio, const gptr buf, int size)
{
DWORD
length
;
DBUG_ENTER
(
"vio_write_pipe"
);
DBUG_PRINT
(
"enter"
,
(
"sd: %d, buf: 0x%
p
, size: %d"
,
vio
->
sd
,
buf
,
size
));
DBUG_PRINT
(
"enter"
,
(
"sd: %d, buf: 0x%
lx
, size: %d"
,
vio
->
sd
,
buf
,
size
));
if
(
!
WriteFile
(
vio
->
hPipe
,
(
char
*
)
buf
,
size
,
&
length
,
NULL
))
DBUG_RETURN
(
-
1
);
...
...
@@ -456,7 +456,7 @@ int vio_read_shared_memory(Vio * vio, gptr buf, int size)
char
*
current_postion
;
DBUG_ENTER
(
"vio_read_shared_memory"
);
DBUG_PRINT
(
"enter"
,
(
"sd: %d, buf: 0x%
p
, size: %d"
,
vio
->
sd
,
buf
,
size
));
DBUG_PRINT
(
"enter"
,
(
"sd: %d, buf: 0x%
lx
, size: %d"
,
vio
->
sd
,
buf
,
size
));
remain_local
=
size
;
current_postion
=
buf
;
...
...
@@ -517,7 +517,7 @@ int vio_write_shared_memory(Vio * vio, const gptr buf, int size)
char
*
current_postion
;
DBUG_ENTER
(
"vio_write_shared_memory"
);
DBUG_PRINT
(
"enter"
,
(
"sd: %d, buf: 0x%
p
, size: %d"
,
vio
->
sd
,
buf
,
size
));
DBUG_PRINT
(
"enter"
,
(
"sd: %d, buf: 0x%
lx
, size: %d"
,
vio
->
sd
,
buf
,
size
));
remain
=
size
;
current_postion
=
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