Skip to content
Commit 349eab6e authored by Chen Gang's avatar Chen Gang Committed by Ingo Molnar
Browse files

x86/process: Change %8s to %s for pr_warn() in release_thread()



the length of dead_task->comm[] is 16 (TASK_COMM_LEN)
on pr_warn(), it is not meaningful to use %8s for task->comm[].

So change it to %s, since the line is not solid anyway.

Additional information:

 %8s  limit the width, not for the original string output length
      if name length is more than 8, it still can be fully displayed.
      if name length is less than 8, the ' ' will be filled before name.

 %.8s truly limit the original string output length (precision)

Signed-off-by: default avatarChen Gang <gang.chen@asianux.com>
Link: http://lkml.kernel.org/n/tip-nridm1zvreai1tgfLjuexDmd@git.kernel.org


Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 2c922cd0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment