projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use helpers to obtain task pid in printks
[linux-2.6-block.git]
/
drivers
/
cdrom
/
cdrom.c
diff --git
a/drivers/cdrom/cdrom.c
b/drivers/cdrom/cdrom.c
index d70745c84250cb4b3f15d51adae267019a2d32c9..af0561053167cd177d89c499c3d9f2b108843d46 100644
(file)
--- a/
drivers/cdrom/cdrom.c
+++ b/
drivers/cdrom/cdrom.c
@@
-1107,7
+1107,7
@@
int open_for_data(struct cdrom_device_info * cdi)
is the default case! */
cdinfo(CD_OPEN, "bummer. wrong media type.\n");
cdinfo(CD_WARNING, "pid %d must open device O_NONBLOCK!\n",
- (unsigned int)
current->pid);
+ (unsigned int)
task_pid_nr(current));
ret=-EMEDIUMTYPE;
goto clean_up_and_return;
}