From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Chen-Yu Tsai <wenst@chromium.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
Alan Stern <stern@rowland.harvard.edu>
Subject: Re: [PATCH v4] usb: hub: Set proper message when usb_hub_create_port_device() fails
Date: Tue, 13 Oct 2026 00:24:53 +0300 [thread overview]
Message-ID: <as1QJfxzU_cSDH2R@ashevche-desk.local> (raw)
In-Reply-To: <as1IrOAaNLuSqtEU@ashevche-desk.local>
On Mon, Oct 12, 2026 at 11:53:04PM +0300, Andy Shevchenko wrote:
> On Mon, Oct 12, 2026 at 05:27:24PM +0800, Chen-Yu Tsai wrote:
...
> > if (ret < 0) {
> > dev_err(hub->intfdev,
> > "couldn't create port%d device.\n", i + 1);
> > + message = "couldn't create port device";
> > break;
>
> We can now even use
>
> message = "couldn't create port device";
> dev_err(hub->intfdev, "%s %d.\n", message, + 1);
Of course this has to be
dev_err(hub->intfdev, "%s %d.\n", message, i + 1);
but in any case it's up to you depending on the template used for the rest of
the messages in this function.
> > }
--
With Best Regards,
Andy Shevchenko
prev parent reply other threads:[~2026-10-12 21:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-12 9:27 [PATCH v4] usb: hub: Set proper message when usb_hub_create_port_device() fails Chen-Yu Tsai
2026-10-12 9:33 ` sashiko-bot
2026-10-12 20:53 ` Andy Shevchenko
2026-10-12 21:24 ` Andy Shevchenko [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=as1QJfxzU_cSDH2R@ashevche-desk.local \
--to=andriy.shevchenko@linux.intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
--cc=wenst@chromium.org \
/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