]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/char/sx.c
Use helpers to obtain task pid in printks
[mirror_ubuntu-bionic-kernel.git] / drivers / char / sx.c
index 85a23283dff55144b594ae86b6a87100814fdf66..a6e1c9ba12174d769e1389d5329b70676e5e3b16 100644 (file)
@@ -1467,7 +1467,7 @@ static int sx_open(struct tty_struct *tty, struct file *filp)
 
        line = tty->index;
        sx_dprintk(SX_DEBUG_OPEN, "%d: opening line %d. tty=%p ctty=%p, "
-                       "np=%d)\n", current->pid, line, tty,
+                       "np=%d)\n", task_pid_nr(current), line, tty,
                        current->signal->tty, sx_nports);
 
        if ((line < 0) || (line >= SX_NPORTS) || (line >= sx_nports))