From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f175.google.com (mail-oi1-f175.google.com [209.85.167.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D47082D97AA for ; Thu, 9 Apr 2026 17:25:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775755527; cv=none; b=IoIzp1UYAhVmfb8XnfLkBYpkjKImDlkNo075u3ioxGEtlGXXkbrAGaT0v9ZHVj49Ge7jEl0lqPUPk1NG8FpnE3fI9BY47z6GX8pzHcm4EYP5x0pZcmcbDbt9CeBksRqmdRa/INx+wPQRdmIkOZJQaQn2uY6oplNYFcSOzR5Rw8Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775755527; c=relaxed/simple; bh=L+gfx4Bqpsx/9F9mWD5tvHyhsf0yMhhmwU896Ja/w4E=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=QQx4Ml1t0Wg8zZFZBQ5w+Cn5Fk22uaSZP+6kCg99nNQyb0QPkDeiqkzNg08FAs2GvQTWzQzIRT0R52UQaQkd0rBWygT+HZn5MJJA8tFt+0d19D5QW7RO4Hfi78D+9wQPjULrB6dCZLYFj2nW1uYnkkXFnJUKWGBnzYgG90cuvus= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Qa1rr73M; arc=none smtp.client-ip=209.85.167.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Qa1rr73M" Received: by mail-oi1-f175.google.com with SMTP id 5614622812f47-4764484296eso664803b6e.3 for ; Thu, 09 Apr 2026 10:25:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1775755524; x=1776360324; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=i68a0+ym1EdN0Esi1FKaKMj3VjkbDFpY9Bx47gnFrsQ=; b=Qa1rr73MvKXbCe6HN0Neg6jmTIVZ+y9gYzDtM8hWUaZyH5wsDcWfNzeQfkycw9hRn2 MIuVw2GTWuPXEhU0HmZjv8YyUKBDCclJk3JfXDoqTB8hFp7p+dcdIrTuYCqr6+QfQRoa Brof0MaYee54F2lIjifhFaxT70ILGpzqDDTIg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775755524; x=1776360324; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=i68a0+ym1EdN0Esi1FKaKMj3VjkbDFpY9Bx47gnFrsQ=; b=h8bHcEObtIh7Pb1RsJvnkF6B7BL50YLnVD0FTDO3vmlY6UQ5kcmlJ6OdEnUyLkM+og kG8Z9awxy6puiCnDkEmS7hXlT3DjEKy627v2KVOmLwbaRBMPZRTbZ4/K632cJeo7KGPg BCQQ7Bs1mefDcXKcNNxSnFnnZd9dn3zacJ3ntkO4tXtvmtm4mTz9o+lkdvkvRfDezAKH Dp1pET9CEwNKw46cnHXLSKDCvLCRXW/talxNtAXJOLVUhiLRECiy+RQU5c0jvVq/7xnR B74YETR8yvEeFU3ga4Xlb6rBhhT67YKafNTylY+kHtPheQhZrE+MrAvgxZCF5x50GTHP MIxw== X-Forwarded-Encrypted: i=1; AJvYcCUqBW+KmDj4b/ZE41/NIaoOsctbWN/2zI8Ps2Jr69GrxS1FOS5M/8yEBZKp1VBl1dYTGM/Ra7x8JavEOIA=@vger.kernel.org X-Gm-Message-State: AOJu0Yxxk7pY02T1k5TPJzsLeqk+n8cab0I11A0wg7QgD2HDjrKu6wTM cIsl4qlVAbx8LMQ8OKfGD+mcm5qXInz29+KYxnIeQV/894wroCrjh7F99QFZJlEUZAU= X-Gm-Gg: AeBDiesBMX8yFQcQ7ZyX6I9WWwAdzLJw0mVfn5fRiwMn51q+hMdttLFziHkgkAA90TA K8gQb2Dd0g60nbhhPf+u/h1B77RvRZWpDPPI1r5IzGG1H6Vs7CUnx6DkPIu50JUQ7jrActwka3a O3ytNMSZSOfC+7+VDdxsjkmIBgwZKKcDB16ZWbyFK62pPThSIsZAwZUf9FEe2GX5oMn3zxANXBq xJFp8+hGkMGXNYHC3z4t0nqkdD3ImZx0X4xwjrmdNDGa8YFqf5ORr4xVYG39M5ut3sQdMqnAOhH pPYPepCq9AM/K6aCymNP8xjxvGltL+jkX8QEp9AUtcffAVScd4R6txnFzyCS9ryzTHoLqNo7PA0 hq0uUK5xoAeUxxiIUvZnjhcCnL0AH4aIOldmFgZqLsci1SrczOTgkU+o9QCDghf+l2ExpRSS+29 fqhQ7KUwgcWJBRcwZCibh6beJi7L+hCjPRz2g= X-Received: by 2002:a05:6808:2383:b0:467:2609:126f with SMTP id 5614622812f47-4789e919773mr58236b6e.24.1775755523617; Thu, 09 Apr 2026 10:25:23 -0700 (PDT) Received: from [192.168.1.14] ([38.175.187.108]) by smtp.gmail.com with ESMTPSA id 5614622812f47-478a080d1edsm12406b6e.2.2026.04.09.10.25.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Apr 2026 10:25:22 -0700 (PDT) Message-ID: <6dd86e33-6b5e-440a-b0a3-0c9356948c2f@linuxfoundation.org> Date: Thu, 9 Apr 2026 11:25:22 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4] usbip: tools: add hint when no exported devices are found To: Zongmin Zhou , gregkh@linuxfoundation.org Cc: i@zenithal.me, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, valentina.manea.m@gmail.com, Zongmin Zhou , Shuah Khan References: <8d7000a9-981c-468a-bd4b-60111e0b77e9@linuxfoundation.org> <20260402083204.53179-1-min_halo@163.com> Content-Language: en-US From: Shuah Khan In-Reply-To: <20260402083204.53179-1-min_halo@163.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/2/26 02:32, Zongmin Zhou wrote: > From: Zongmin Zhou > > When refresh_exported_devices() finds no devices, it's helpful to > inform users about potential causes. This could be due to: > > 1. The usbip driver module is not loaded. > 2. No devices have been exported yet. > > Add an informational message to guide users when ndevs == 0. > > Also update the condition in usbip_host_driver_open() and > usbip_device_driver_open() to check both ret and ndevs == 0, > and change err() to info(). > > Message visibility by scenario: > - usbipd (console mode): Show on console/serial, this allows instant > visibility for debugging. > - usbipd -D (daemon mode): Message logged to syslog, can keep logs for > later traceability in production. Also can use "journalctl -f" to > trace on console. > > Suggested-by: Shuah Khan > Signed-off-by: Zongmin Zhou > --- > Changes in v4: > - Printing behavior adjusted as suggested. Reviewed-by: Shuah Khan Greg, Please pick this up. thanks, -- Shuah