From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752178AbaHKIFh (ORCPT ); Mon, 11 Aug 2014 04:05:37 -0400 Received: from lgeamrelo02.lge.com ([156.147.1.126]:55229 "EHLO lgeamrelo02.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750720AbaHKIFf (ORCPT ); Mon, 11 Aug 2014 04:05:35 -0400 X-Original-SENDERIP: 10.177.220.181 X-Original-MAILFROM: namhyung@gmail.com From: Namhyung Kim To: Arnaldo Carvalho de Melo Cc: Peter Zijlstra , Ingo Molnar , Paul Mackerras , Namhyung Kim , LKML , Jiri Olsa Subject: Re: [PATCH 2/8] perf tools: Make __hpp__fmt() receive an additional len argument References: <1406785662-5534-1-git-send-email-namhyung@kernel.org> <1406785662-5534-3-git-send-email-namhyung@kernel.org> <20140802133026.GD13375@kernel.org> Date: Mon, 11 Aug 2014 17:05:33 +0900 In-Reply-To: <20140802133026.GD13375@kernel.org> (Arnaldo Carvalho de Melo's message of "Sat, 2 Aug 2014 10:30:26 -0300") Message-ID: <87r40nfo36.fsf@sejong.aot.lge.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnaldo, On Sat, 2 Aug 2014 10:30:26 -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Jul 31, 2014 at 02:47:36PM +0900, Namhyung Kim escreveu: >> So that it can properly handle alignment requirements later. To do >> that, add percent_color_len_snprintf() fucntion to help coloring of >> overhead columns. > > Can you elaborate on this description? What is not possible to do before > this patch? This patch is a preparation that moves hard-coded print width out of the format string so that it can be passed from external settings later. > > Perhaps a formatted line before this patch and then the same line > formatted after the patch? The default behavior wasn't changed, it's only meaningful when user gives field width using -w option. You can see the difference in the description 0/8. Thanks, Namhyung