Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
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
linux
Commits
a423863f
Commit
a423863f
authored
Sep 06, 2003
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PCMCIA] Fix cs.c debugging.
socket references are pointers, not integers.
parent
d742b6ed
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
drivers/pcmcia/cs.c
drivers/pcmcia/cs.c
+7
-7
No files found.
drivers/pcmcia/cs.c
View file @
a423863f
...
...
@@ -1020,7 +1020,7 @@ int pcmcia_bind_device(bind_req_t *req)
init_waitqueue_head
(
&
client
->
mtd_req
);
client
->
next
=
s
->
clients
;
s
->
clients
=
client
;
DEBUG
(
1
,
"cs: bind_device(): client 0x%p, sock %
d
, dev %s
\n
"
,
DEBUG
(
1
,
"cs: bind_device(): client 0x%p, sock %
p
, dev %s
\n
"
,
client
,
client
->
Socket
,
client
->
dev_info
);
return
CS_SUCCESS
;
}
/* bind_device */
...
...
@@ -1551,7 +1551,7 @@ int pcmcia_register_client(client_handle_t *handle, client_reg_t *req)
memset
(
s
->
config
,
0
,
sizeof
(
config_t
)
*
s
->
functions
);
}
DEBUG
(
1
,
"cs: register_client(): client 0x%p, sock %
d
, dev %s
\n
"
,
DEBUG
(
1
,
"cs: register_client(): client 0x%p, sock %
p
, dev %s
\n
"
,
client
,
client
->
Socket
,
client
->
dev_info
);
if
(
client
->
EventMask
&
CS_EVENT_REGISTRATION_COMPLETE
)
EVENT
(
client
,
CS_EVENT_REGISTRATION_COMPLETE
,
CS_EVENT_PRI_LOW
);
...
...
@@ -2081,7 +2081,7 @@ int pcmcia_reset_card(client_handle_t handle, client_req_t *req)
if
(
CHECK_HANDLE
(
handle
))
return
CS_BAD_HANDLE
;
DEBUG
(
1
,
"cs: resetting socket %
d
\n
"
,
handle
->
Socket
);
DEBUG
(
1
,
"cs: resetting socket %
p
\n
"
,
handle
->
Socket
);
skt
=
SOCKET
(
handle
);
down
(
&
skt
->
skt_sem
);
...
...
@@ -2130,7 +2130,7 @@ int pcmcia_suspend_card(client_handle_t handle, client_req_t *req)
if
(
CHECK_HANDLE
(
handle
))
return
CS_BAD_HANDLE
;
DEBUG
(
1
,
"cs: suspending socket %
d
\n
"
,
handle
->
Socket
);
DEBUG
(
1
,
"cs: suspending socket %
p
\n
"
,
handle
->
Socket
);
skt
=
SOCKET
(
handle
);
down
(
&
skt
->
skt_sem
);
...
...
@@ -2157,7 +2157,7 @@ int pcmcia_resume_card(client_handle_t handle, client_req_t *req)
if
(
CHECK_HANDLE
(
handle
))
return
CS_BAD_HANDLE
;
DEBUG
(
1
,
"cs: waking up socket %
d
\n
"
,
handle
->
Socket
);
DEBUG
(
1
,
"cs: waking up socket %
p
\n
"
,
handle
->
Socket
);
skt
=
SOCKET
(
handle
);
down
(
&
skt
->
skt_sem
);
...
...
@@ -2190,7 +2190,7 @@ int pcmcia_eject_card(client_handle_t handle, client_req_t *req)
if
(
CHECK_HANDLE
(
handle
))
return
CS_BAD_HANDLE
;
DEBUG
(
1
,
"cs: user eject request on socket %
d
\n
"
,
handle
->
Socket
);
DEBUG
(
1
,
"cs: user eject request on socket %
p
\n
"
,
handle
->
Socket
);
skt
=
SOCKET
(
handle
);
down
(
&
skt
->
skt_sem
);
...
...
@@ -2219,7 +2219,7 @@ int pcmcia_insert_card(client_handle_t handle, client_req_t *req)
if
(
CHECK_HANDLE
(
handle
))
return
CS_BAD_HANDLE
;
DEBUG
(
1
,
"cs: user insert request on socket %
d
\n
"
,
handle
->
Socket
);
DEBUG
(
1
,
"cs: user insert request on socket %
p
\n
"
,
handle
->
Socket
);
skt
=
SOCKET
(
handle
);
down
(
&
skt
->
skt_sem
);
...
...
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