Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752848Ab1ECPOU (ORCPT ); Tue, 3 May 2011 11:14:20 -0400 Received: from mail.perches.com ([173.55.12.10]:1160 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752460Ab1ECPOT (ORCPT ); Tue, 3 May 2011 11:14:19 -0400 Subject: Re: [PATCH 3/4] x86, mce: Add persistent MCE event From: Joe Perches To: Borislav Petkov Cc: Ingo Molnar , Peter Zijlstra , Arnaldo Carvalho de Melo , Steven Rostedt , Frederic Weisbecker , Tony Luck , Mauro Carvalho Chehab , EDAC devel , LKML , "Petkov, Borislav" In-Reply-To: <20110503071833.GB18979@aftab> References: <1304357691-14354-1-git-send-email-bp@amd64.org> <1304357691-14354-4-git-send-email-bp@amd64.org> <20110503064401.GE7751@elte.hu> <20110503071833.GB18979@aftab> Content-Type: text/plain; charset="UTF-8" Date: Tue, 03 May 2011 08:14:16 -0700 Message-ID: <1304435656.1788.8.camel@Joe-Laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 748 Lines: 22 On Tue, 2011-05-03 at 09:18 +0200, Borislav Petkov wrote: > On Tue, May 03, 2011 at 02:44:01AM -0400, Ingo Molnar wrote: > > * Borislav Petkov wrote: [] > > > +static struct dentry *mce_add_event_debugfs(struct perf_event *event, int cpu) > > > +{ > > > + char buf[14]; > > > + > > > + sprintf(buf, "mce_record%d", cpu); trivia: buf[14] doesn't fit 10k+ cpus. Isn't that an unnecessary future/current problem? Maybe something bigger? char buf[sizeof("mce_record") + sizeof(int) * 3] -- 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/