From: Mathias Nyman <mathias.nyman@linux.intel.com>
To: Michal Pecio <michal.pecio@gmail.com>,
Mathias Nyman <mathias.nyman@intel.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] usb: xhci: Fix a format bug
Date: Fri, 31 Oct 2025 17:00:42 +0200 [thread overview]
Message-ID: <2797d75d-693f-4a99-9465-a340f956cc4f@linux.intel.com> (raw)
In-Reply-To: <20251016182813.3d10a8a3.michal.pecio@gmail.com>
On 10/16/25 19:28, Michal Pecio wrote:
> The width of 'addr' depends on kernel configuration and gibberish is
> printed in traces and dynamic debug on some 32 bit systems like ARM:
>
> Removing canceled TD starting at 0xf9c96eb0 (dma) in stream 0 URB 54e247b5
> Set TR Deq ptr 0x205400000000000, cycle 0
>
> Successful Set TR Deq Ptr cmd, deq = @f9c96ef0
>
> Fix it by casting to 64 bits. No effect on unaffected systems.
> Remove the newline which casuses an empty line to appear next.
>
> Fixes: d1dbfb942c33 ("xhci: introduce a new move_dequeue_past_td() function to replace old code.")
> Cc: stable@vger.kernel.org
> Signed-off-by: Michal Pecio <michal.pecio@gmail.com>
> ---
> drivers/usb/host/xhci-ring.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
> index c7f658d446cd..6d799a5a062d 100644
> --- a/drivers/usb/host/xhci-ring.c
> +++ b/drivers/usb/host/xhci-ring.c
> @@ -776,7 +776,7 @@ static int xhci_move_dequeue_past_td(struct xhci_hcd *xhci,
> ep->queued_deq_ptr = new_deq;
>
> xhci_dbg_trace(xhci, trace_xhci_dbg_cancel_urb,
> - "Set TR Deq ptr 0x%llx, cycle %u\n", addr, new_cycle);
> + "Set TR Deq ptr 0x%llx, cycle %u", (u64) addr, new_cycle);
Why not %pad and &addr instead?
Thanks
Mathias
next prev parent reply other threads:[~2025-10-31 15:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-16 16:28 [PATCH 1/2] usb: xhci: Fix a format bug Michal Pecio
2025-10-16 16:29 ` [PATCH 2/2] usb: xhci: Type check xhci_dbg_trace() Michal Pecio
2025-10-31 15:00 ` Mathias Nyman [this message]
2025-10-31 17:54 ` [PATCH 1/2] usb: xhci: Fix a format bug Michal Pecio
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=2797d75d-693f-4a99-9465-a340f956cc4f@linux.intel.com \
--to=mathias.nyman@linux.intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mathias.nyman@intel.com \
--cc=michal.pecio@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.