From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by gabe.freedesktop.org (Postfix) with ESMTPS id BDAA810E108 for ; Wed, 30 Nov 2022 17:16:19 +0000 (UTC) Date: Wed, 30 Nov 2022 19:16:15 +0200 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Jani Nikula Message-ID: References: <20221129131424.2096289-1-jani.nikula@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221129131424.2096289-1-jani.nikula@intel.com> Subject: Re: [igt-dev] [PATCH i-g-t] tools/intel_vbt_decode: print debug-ish messages to stderr List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: igt-dev@lists.freedesktop.org Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: On Tue, Nov 29, 2022 at 03:14:24PM +0200, Jani Nikula wrote: > The tool outputs the decoded and somewhat nicely formatted VBT to > stdout, so debug style messages to stdout aren't a great fit. For > example: > > BDB blocks present: > 1 2 9 10 12 20 27 40Generating LVDS data table pointers > 41Generating LVDS data table pointers > 42 43 44 46 51 52 53 > 56 57 58 252 253 254 > > Print the debug message about data table pointers to stderr instead. > > Fixes: ce4d30196d3c ("tools/intel_vbt_decode: Generate LVDS data table pointes if not provided") > Cc: Ville Syrjälä > Signed-off-by: Jani Nikula Reviewed-by: Ville Syrjälä > --- > tools/intel_vbt_decode.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/intel_vbt_decode.c b/tools/intel_vbt_decode.c > index 94a910b5c107..8f707c1f822a 100644 > --- a/tools/intel_vbt_decode.c > +++ b/tools/intel_vbt_decode.c > @@ -460,7 +460,7 @@ static struct bdb_block *find_section(const struct context *context, int section > > data = find_raw_section(context, section_id); > if (!data && section_id == BDB_LVDS_LFP_DATA_PTRS) { > - printf("Generating LVDS data table pointers\n"); > + fprintf(stderr, "Generating LVDS data table pointers\n"); > temp_block = generate_lvds_data_ptrs(context); > if (temp_block) > data = temp_block + 3; > -- > 2.34.1 -- Ville Syrjälä Intel