Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758212AbZGAFHn (ORCPT ); Wed, 1 Jul 2009 01:07:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755953AbZGAFHO (ORCPT ); Wed, 1 Jul 2009 01:07:14 -0400 Received: from mx2.redhat.com ([66.187.237.31]:33410 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753316AbZGAFHK (ORCPT ); Wed, 1 Jul 2009 01:07:10 -0400 Date: Wed, 1 Jul 2009 01:06:46 -0400 From: Amerigo Wang To: linux-kernel@vger.kernel.org Cc: Alexander Viro , Roland McGrath , Serge Hallyn , David Howells , Amerigo Wang , James Morris , linux-fsdevel@vger.kernel.org, Andrew Morton Message-Id: <20090701050900.6188.41697.sendpatchset@localhost.localdomain> In-Reply-To: <20090701050840.6188.84560.sendpatchset@localhost.localdomain> References: <20090701050840.6188.84560.sendpatchset@localhost.localdomain> Subject: [Patch 3/3] elf: use a macro instead of a raw number Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 924 Lines: 26 Use TASK_COMM_LEN instead of the raw number 16. Signed-off-by: WANG Cong Cc: Alexander Viro Cc: David Howells --- Index: linux-2.6/include/linux/elfcore.h =================================================================== --- linux-2.6.orig/include/linux/elfcore.h +++ linux-2.6/include/linux/elfcore.h @@ -90,7 +90,7 @@ struct elf_prpsinfo __kernel_gid_t pr_gid; pid_t pr_pid, pr_ppid, pr_pgrp, pr_sid; /* Lots missing */ - char pr_fname[16]; /* filename of executable */ + char pr_fname[TASK_COMM_LEN];/* filename of executable */ char pr_psargs[ELF_PRARGSZ]; /* initial part of arg list */ }; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/