Skip to content

Commit 349eab6

Browse files
Chen Gangingomolnar
authored andcommitted
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: Chen Gang <gang.chen@asianux.com> Link: http://lkml.kernel.org/n/tip-nridm1zvreai1tgfLjuexDmd@git.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 2c922cd commit 349eab6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/x86/kernel/process_64.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ void release_thread(struct task_struct *dead_task)
117117
{
118118
if (dead_task->mm) {
119119
if (dead_task->mm->context.size) {
120-
pr_warn("WARNING: dead process %8s still has LDT? <%p/%d>\n",
120+
pr_warn("WARNING: dead process %s still has LDT? <%p/%d>\n",
121121
dead_task->comm,
122122
dead_task->mm->context.ldt,
123123
dead_task->mm->context.size);

0 commit comments

Comments
 (0)