Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
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
linux
linux-davinci-2.6.23
Commits
a106009b
Commit
a106009b
authored
May 02, 2007
by
Andi Kleen
Committed by
Andi Kleen
May 02, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] x86-64: Print type and size correctly for unknown compat ioctls
Signed-off-by:
Andi Kleen
<
ak@suse.de
>
parent
c812d6c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
fs/compat.c
fs/compat.c
+3
-2
No files found.
fs/compat.c
View file @
a106009b
...
...
@@ -371,13 +371,14 @@ static void compat_ioctl_error(struct file *filp, unsigned int fd,
fn
=
"?"
;
}
sprintf
(
buf
,
"'%c'"
,
(
cmd
>>
24
)
&
0x3f
);
sprintf
(
buf
,
"'%c'"
,
(
cmd
>>
_IOC_TYPESHIFT
)
&
_IOC_TYPEMASK
);
if
(
!
isprint
(
buf
[
1
]))
sprintf
(
buf
,
"%02x"
,
buf
[
1
]);
compat_printk
(
"ioctl32(%s:%d): Unknown cmd fd(%d) "
"cmd(%08x){
%s
} arg(%08x) on %s
\n
"
,
"cmd(%08x){
t:%s;sz:%u
} arg(%08x) on %s
\n
"
,
current
->
comm
,
current
->
pid
,
(
int
)
fd
,
(
unsigned
int
)
cmd
,
buf
,
(
cmd
>>
_IOC_SIZESHIFT
)
&
_IOC_SIZEMASK
,
(
unsigned
int
)
arg
,
fn
);
if
(
path
)
...
...
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