From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753340Ab3JANZG (ORCPT ); Tue, 1 Oct 2013 09:25:06 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:43907 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753007Ab3JANZE (ORCPT ); Tue, 1 Oct 2013 09:25:04 -0400 Message-ID: <524ACD2A.7040902@gmail.com> Date: Tue, 01 Oct 2013 07:24:58 -0600 From: David Ahern User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Ingo Molnar CC: Namhyung Kim , Arnaldo Carvalho de Melo , Peter Zijlstra , Paul Mackerras , Namhyung Kim , LKML , Jiri Olsa , Sonny Rao Subject: Re: [PATCH] perf session: Fix infinite loop on invalid perf.data file References: <1380529188-27193-1-git-send-email-namhyung@kernel.org> <20131001071646.GA20023@gmail.com> In-Reply-To: <20131001071646.GA20023@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/1/13 1:16 AM, Ingo Molnar wrote: > Just a detail: it would be nice to make all the user facing messages in > tools/perf/util/header.c more specific and more structured. For example > prefixing it with 'perf header:' would be fine: > > WARNING: perf/header: Data size is 0. Was the 'perf record' command properly terminated? > Why put code references in the messages? The message is all on one line so grep finds it quickly for people working on the code. David