From nobody Tue Sep 6 13:16:01 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MMQr147DVz4bn1j; Tue, 6 Sep 2022 13:16:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MMQr13Wz4z3wqM; Tue, 6 Sep 2022 13:16:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662470161; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=evYnEKAMlH9E2TqnWGhgm12XGj3qSKFM/l95fOKdEsw=; b=AZY7e50ZFpemRC0ybB/Dm9ur38xgpwVjlVdbeJaQAxqh2JXD7YWqBSg7EllXuTn/oOuXap NUOZA36pmr2Jev/41J8H1oB/OL+VZftDZ5fFzYQJNrXdIne2uX7o4gM27MuO95A0y5K+8r 1tw0f9IE9JXRFBf3SBmKYqCZ/+ncPmOfMrSXOwWLjN1KWilQNYtGyrpFiSVdNgmp+7Sfys H/eQwuyMl3HfWF2L/QU1IRCi3dl4k1hAzslVqF53v32XcvzNDN5K1flJptmQccMmM9bT9W BwWiO/IIdYcKyj+x7om98KSA86UgJcPhZmUbQu/3BSS65RMRRrVP+tg97MENyg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MMQr12YP9z1B3v; Tue, 6 Sep 2022 13:16:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 286DG1rS073416; Tue, 6 Sep 2022 13:16:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 286DG13j073415; Tue, 6 Sep 2022 13:16:01 GMT (envelope-from git) Date: Tue, 6 Sep 2022 13:16:01 GMT Message-Id: <202209061316.286DG13j073415@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: ac606903a800 - main - ifconfig: print interface name on SIOCIFCREATE2 error List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ac606903a800bc4ce80bc6fa1374b45efcdb7014 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662470161; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=evYnEKAMlH9E2TqnWGhgm12XGj3qSKFM/l95fOKdEsw=; b=vfFi/UCLnsl6WjoEdCmesF3gfKJnNcIOvv1oHpSHR9nW+eT1+oX1yR/al0KBDlmbwgS1NK 4cfyF6GoepAtM2tNR+ikilUp4m6SGRUza7XdDOqFK7ClHf0Xlmom44lvdOqzAYl/0huEhy tnONBsvPQdH5iUDj2LGI4fiu8Q1mK1rjuCaI5xr/zJixz0sqNBMjaG5PXS3OWHRtHLZLh8 ZEUicAWoEt7umpwdtAiT/U2oEOXnG9AWAHqhrHGXHoUpeLNLFKLYAHDI0bcR2/zssLK47d BMI+Ip1uLkLy+J706vAWfh44ifgDVN9zkWYXTGbGWcJbMgQByA/Acn/7Hafcag== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662470161; a=rsa-sha256; cv=none; b=pVyIcdHC0lmznLCbgFu86vFnYKh0BXVjawqUuv3SU0P4u6E3flE6z5nI586gLWxf0dEL/y U+9x+Luri8MmKJqyxXHM6YYdrnRTJHmmylO0mFQov5YkEQRq6bnFzNaXHd5Xb8oBOVOAUx bxaNn7vvsHhauCkmhaBkj+OkBqy1zYYfffqgRZl7txk0LfJk6Rv3/x3CDhpFmMuwCylhOr ItUPGTATFgFeq3RdT6z4qPkSec7TS+c7fXxt0X2Eqp5bdMN+ZRmQzLx0nMyW2N8DjyyiMg AN2HojIWn6AxcsriDZzEKGOg5765LE2KDFtGhQSYwjYeTApvA7fhVJRlOwcQZg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=ac606903a800bc4ce80bc6fa1374b45efcdb7014 commit ac606903a800bc4ce80bc6fa1374b45efcdb7014 Author: Bjoern A. Zeeb AuthorDate: 2022-09-06 13:09:39 +0000 Commit: Bjoern A. Zeeb CommitDate: 2022-09-06 13:09:39 +0000 ifconfig: print interface name on SIOCIFCREATE2 error We have repeatedly gotten reports of unclassified SIOCIFCREATE2 errors (usually "Device not configured"). This can happen if there is configuration for interfaces in rc.conf which do not (yet) exist and we try to configure. I can, e.g., provoke this by configuring wlan interfaces with their physical interface not installed. In order to cut support (guesswork) down print the name of the interface to be configured with the error message. Hopefully this will help us in the future to improve other configuration or driver problems. Sponsored by: The FreeBSD Foundation MFC after: 3 days --- sbin/ifconfig/ifconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index ec8a3fd52803..462d543125c4 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -208,7 +208,7 @@ ioctl_ifcreate(int s, struct ifreq *ifr) case EEXIST: errx(1, "interface %s already exists", ifr->ifr_name); default: - err(1, "SIOCIFCREATE2"); + err(1, "SIOCIFCREATE2 (%s)", ifr->ifr_name); } } }