Use helpers to obtain task pid in printks
[deliverable/linux.git] / net / core / pktgen.c
index 9d6e6f18838be2fdb7690c38139a3b24680f121e..7ac703171ff3014cd2f204501250344ef5373cf1 100644 (file)
@@ -3514,7 +3514,7 @@ static int pktgen_thread_worker(void *arg)
 
        init_waitqueue_head(&t->queue);
 
-       pr_debug("pktgen: starting pktgen/%d:  pid=%d\n", cpu, current->pid);
+       pr_debug("pktgen: starting pktgen/%d:  pid=%d\n", cpu, task_pid_nr(current));
 
        set_current_state(TASK_INTERRUPTIBLE);
 
This page took 0.073013 seconds and 5 git commands to generate.