Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Ville Syrjala <ville.syrjala@linux.intel.com>,
	intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH 2/2] drm/i915: Prefix hex numbers with 0x
Date: Tue, 31 Jan 2023 09:12:51 +0200	[thread overview]
Message-ID: <87tu072n4c.fsf@intel.com> (raw)
In-Reply-To: <20230130181701.29977-2-ville.syrjala@linux.intel.com>

On Mon, 30 Jan 2023, Ville Syrjala <ville.syrjala@linux.intel.com> wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> It's hard to figure out whether the number is hex
> or decimal if doesn't have the 0x to indicate hex.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

Reviewed-by: Jani Nikula <jani.nikula@intel.com>

> ---
>  drivers/gpu/drm/i915/intel_device_info.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_device_info.c b/drivers/gpu/drm/i915/intel_device_info.c
> index 599c6d399de4..524f93768c41 100644
> --- a/drivers/gpu/drm/i915/intel_device_info.c
> +++ b/drivers/gpu/drm/i915/intel_device_info.c
> @@ -125,8 +125,8 @@ void intel_device_info_print(const struct intel_device_info *info,
>  	drm_printf(p, "base die stepping: %s\n", intel_step_name(runtime->step.basedie_step));
>  
>  	drm_printf(p, "gt: %d\n", info->gt);
> -	drm_printf(p, "memory-regions: %x\n", runtime->memory_regions);
> -	drm_printf(p, "page-sizes: %x\n", runtime->page_sizes);
> +	drm_printf(p, "memory-regions: 0x%x\n", runtime->memory_regions);
> +	drm_printf(p, "page-sizes: 0x%x\n", runtime->page_sizes);
>  	drm_printf(p, "platform: %s\n", intel_platform_name(info->platform));
>  	drm_printf(p, "ppgtt-size: %d\n", runtime->ppgtt_size);
>  	drm_printf(p, "ppgtt-type: %d\n", runtime->ppgtt_type);
> @@ -540,5 +540,5 @@ void intel_driver_caps_print(const struct intel_driver_caps *caps,
>  {
>  	drm_printf(p, "Has logical contexts? %s\n",
>  		   str_yes_no(caps->has_logical_contexts));
> -	drm_printf(p, "scheduler: %x\n", caps->scheduler);
> +	drm_printf(p, "scheduler: 0x%x\n", caps->scheduler);
>  }

-- 
Jani Nikula, Intel Open Source Graphics Center

  reply	other threads:[~2023-01-31  7:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-30 18:17 [Intel-gfx] [PATCH 1/2] drm/i915: Include stepping informaiton in device info dump Ville Syrjala
2023-01-30 18:17 ` [Intel-gfx] [PATCH 2/2] drm/i915: Prefix hex numbers with 0x Ville Syrjala
2023-01-31  7:12   ` Jani Nikula [this message]
2023-01-30 21:04 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [1/2] drm/i915: Include stepping informaiton in device info dump Patchwork
2023-01-30 23:51 ` [Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915: Include stepping informaiton in device info dump (rev2) Patchwork
2023-01-31  5:54 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2023-01-31  7:11 ` [Intel-gfx] [PATCH 1/2] drm/i915: Include stepping informaiton in device info dump Jani Nikula
2023-01-31  7:12   ` Jani Nikula

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=87tu072n4c.fsf@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=ville.syrjala@linux.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