Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci virtio(4): Print numeric device type, even if un...



details:   https://anonhg.NetBSD.org/src/rev/a3418f8ecc0f
branches:  trunk
changeset: 368955:a3418f8ecc0f
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Aug 14 10:06:54 2022 +0000

description:
virtio(4): Print numeric device type, even if unrecognized.

diffstat:

 sys/dev/pci/virtio.c |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (32 lines):

diff -r 40de5f015feb -r a3418f8ecc0f sys/dev/pci/virtio.c
--- a/sys/dev/pci/virtio.c      Sun Aug 14 09:47:29 2022 +0000
+++ b/sys/dev/pci/virtio.c      Sun Aug 14 10:06:54 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: virtio.c,v 1.57 2022/08/12 10:49:57 riastradh Exp $    */
+/*     $NetBSD: virtio.c,v 1.58 2022/08/14 10:06:54 riastradh Exp $    */
 
 /*
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: virtio.c,v 1.57 2022/08/12 10:49:57 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: virtio.c,v 1.58 2022/08/14 10:06:54 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1418,9 +1418,10 @@
 void
 virtio_print_device_type(device_t self, int id, int revision)
 {
-       aprint_normal_dev(self, "%s device (rev. 0x%02x)\n",
-                 (id < NDEVNAMES ? virtio_device_name[id] : "Unknown"),
-                 revision);
+       aprint_normal_dev(self, "%s device (id %d, rev. 0x%02x)\n",
+           (id < NDEVNAMES ? virtio_device_name[id] : "Unknown"),
+           id,
+           revision);
 }
 
 



Home | Main Index | Thread Index | Old Index