Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53939
b: refs/heads/master
c: a106009
h: refs/heads/master
i:
  53937: fcd42a0
  53935: 4cd1de2
v: v3
  • Loading branch information
Andi Kleen authored and Andi Kleen committed May 2, 2007
1 parent db68f60 commit 2c57414
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c812d6c198c5f39a6ea22a9a12d518cd3714af16
refs/heads/master: a106009bdfa12b6452b724cc0718ca8e1334745d
5 changes: 3 additions & 2 deletions trunk/fs/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2c57414

Please sign in to comment.