]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/mtd/ubi/wl.c
Use helpers to obtain task pid in printks
[mirror_ubuntu-bionic-kernel.git] / drivers / mtd / ubi / wl.c
index a4f1bf33164a1426eb92ea59df1093d856986633..6330c8cc72b5521fa8574d7f4d3f492b7e9cb231 100644 (file)
@@ -1309,7 +1309,7 @@ static int ubi_thread(void *u)
        struct ubi_device *ubi = u;
 
        ubi_msg("background thread \"%s\" started, PID %d",
-               ubi->bgt_name, current->pid);
+               ubi->bgt_name, task_pid_nr(current));
 
        set_freezable();
        for (;;) {