From nobody Mon Sep 11 08:55:24 2023 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 4RkgXX569sz4tNby; Mon, 11 Sep 2023 08:55:24 +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 4RkgXX3zQyz4GX9; Mon, 11 Sep 2023 08:55:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694422524; 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=VSj39F9yE8lZ5pqLwjRfE9L5cBBz5UjRRbve/VlR3bY=; b=RNuzcMhpD9XBQgf+aRgr6HZQ/gkZbf5k+xrGLgq2NRyHFj1RLTgovbuYHLyJTXG0rVacyX hVbwMfJ7YovEtw4FQAJOCsM944EKCnjBiodn0SJ2/0B7v9cDKTUcL5CVZhpDkP7/QxLXDF G5aJm4Me5GPBNWK3rBHfyrb8QHcQXtQpCtywGV+J3JklQVX5h2b3M9fxvozQE4abvwLN7I gUL10TQmb/ZWqrlTnzpGfnACPDA73tp/fh3sz0upfPHSQygQaArz3Yr9sOxs5hfqpDu7gQ qLGdNHMfH5vmJv8zKln3sgVQ9avUzQfpj7upzrO4QGgwMKkm2ojMk20hjG66CA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694422524; a=rsa-sha256; cv=none; b=RW8j/i+csPrzh2zfmOOmQ9JUNHRnGd7465902vmIeg5fXtoidco9VEnHQrrbXUnxZ5b72o DPeb3q0CFX5lgArK4LuXtb8dGLpiZa8muuBTD3/jozxxNb209Z75FHxPKslIkK7iPJ6TbU TtcM58iaW0VYXMx2umxVv8skVVu3AWVaw59eHrgWgweetFNCa8DcvpxGhuug5o1HgcL4+I YMnlECxn0nq4VIQ0Bwaxh4ri35oqKMZfJrQi5ErrK8TGknJxlogGQARyhE+JU1Ci18NKuq ppEXGFPdpKlWjjAODsva3/9QckgdJ9IeYW2GamK3wraaG/E8gxWqzMC5T8cGWg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694422524; 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=VSj39F9yE8lZ5pqLwjRfE9L5cBBz5UjRRbve/VlR3bY=; b=ZOXoUO2mcvU5d2lQeI4sA25nIOeK9ScEATP3zdFwNMFjzQRosNZlazUhdAY+U9WmU/X2eD u8pP7yKw7dKAAJJq+Cup3gK/P3p3pLBLNLtDH+0/6LQzMYB1zJAqFi1Yo/5fEu1d4T2a8m ldG08auZuIvj3288ri2vUK5H1S7qS2Eioye/MiWVgONZmIHqGxofBO11CiX8O2adbkV8QP ovTEkh1O7Padwd0IZroAlgZY4ET7hj0d4sFT3hbgiRWY9TXVJ+4fyIvPerl2IL4RKu1QhX TKjML87qxpRVxM/gycr5vtmUYVvO0Dl8BnOVFfAOhVxJeCshdynXN4+ZNcUntQ== 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 4RkgXX2pgdzk2K; Mon, 11 Sep 2023 08:55:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 38B8tOfO092560; Mon, 11 Sep 2023 08:55:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38B8tOfG092558; Mon, 11 Sep 2023 08:55:24 GMT (envelope-from git) Date: Mon, 11 Sep 2023 08:55:24 GMT Message-Id: <202309110855.38B8tOfG092558@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 4196186dbfd0 - main - hyperv/vmbus: Flip a message to only be emitted on failure 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: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4196186dbfd0949cfa2c51979fb169b7a79a80e4 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=4196186dbfd0949cfa2c51979fb169b7a79a80e4 commit 4196186dbfd0949cfa2c51979fb169b7a79a80e4 Author: Li-Wen Hsu AuthorDate: 2023-09-11 08:51:46 +0000 Commit: Li-Wen Hsu CommitDate: 2023-09-11 08:51:46 +0000 hyperv/vmbus: Flip a message to only be emitted on failure This message is not very useful when things are working well. Flip its meaning and let it only be emitted on failure. While here, pet style(9). Reviewed by: mhorne, whu Differential Revision: https://reviews.freebsd.org/D41788 --- sys/dev/hyperv/pcib/vmbus_pcib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/hyperv/pcib/vmbus_pcib.c b/sys/dev/hyperv/pcib/vmbus_pcib.c index da722eb0b834..ee7b82c10f23 100644 --- a/sys/dev/hyperv/pcib/vmbus_pcib.c +++ b/sys/dev/hyperv/pcib/vmbus_pcib.c @@ -1705,9 +1705,9 @@ vmbus_pcib_alloc_resource(device_t dev, device_t child, int type, int *rid, if (res == NULL && start + count - 1 == end) res = bus_generic_alloc_resource(dev, child, type, rid, start, end, count, flags); - if (res) { - device_printf(dev,"vmbus_pcib_alloc_resource is successful\n"); - } + if (res == NULL) + device_printf(dev, "vmbus_pcib_alloc_resource failed\n"); + return (res); }