git: fad51d34f213 - main - arm64/gicv3: improve a panic message

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Wed, 10 Nov 2021 09:46:13 UTC
The branch main has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=fad51d34f21359c5b94ca94842381c3e000f475e

commit fad51d34f21359c5b94ca94842381c3e000f475e
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2021-11-09 22:11:15 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2021-11-10 09:41:57 +0000

    arm64/gicv3: improve a panic message
    
    Print the device/unit in the panic message for which we cannot get
    the MSI device ID to have a clue where to start looking.
    While here use __func__ instead of hardcoding the function name.
    
    Reviewed by:    emaste
    Differential Revision: https://reviews.freebsd.org/D32917
---
 sys/arm64/arm64/gicv3_its.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/arm64/arm64/gicv3_its.c b/sys/arm64/arm64/gicv3_its.c
index 1a0e7a79e76b..0f30ca746e9e 100644
--- a/sys/arm64/arm64/gicv3_its.c
+++ b/sys/arm64/arm64/gicv3_its.c
@@ -1124,7 +1124,8 @@ its_get_devid(device_t pci_dev)
 	uintptr_t id;
 
 	if (pci_get_id(pci_dev, PCI_ID_MSI, &id) != 0)
-		panic("its_get_devid: Unable to get the MSI DeviceID");
+		panic("%s: %s: Unable to get the MSI DeviceID", __func__,
+		    device_get_nameunit(pci_dev));
 
 	return (id);
 }