public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t] tools/intel_vbt_decode: print debug-ish messages to stderr
Date: Wed, 30 Nov 2022 19:16:15 +0200	[thread overview]
Message-ID: <Y4eP3+uvLqsue2Zz@intel.com> (raw)
In-Reply-To: <20221129131424.2096289-1-jani.nikula@intel.com>

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ä <ville.syrjala@linux.intel.com>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

> ---
>  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

      parent reply	other threads:[~2022-11-30 17:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-29 13:14 [igt-dev] [PATCH i-g-t] tools/intel_vbt_decode: print debug-ish messages to stderr Jani Nikula
2022-11-29 16:53 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2022-11-30 17:16 ` Ville Syrjälä [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y4eP3+uvLqsue2Zz@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=jani.nikula@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox