summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorStefan Fritsch <sf@cvs.openbsd.org>2024-11-04 15:43:11 +0000
committerStefan Fritsch <sf@cvs.openbsd.org>2024-11-04 15:43:11 +0000
commite6bbc98a6c17cb278d9ca77426aabd508889c349 (patch)
treee9bc3b6b6ad4dbdc6c1797e7799ac9396fc9d784 /sys/dev
parenta88cbec02742464f8559f5c633f75ede6cad189e (diff)
viogpu: tune down debug messages
viogpu_send_cmd() is called for every framebuffer update. Only print log message at VIRTIO_DEBUG >= 3 to avoid log spam.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pv/viogpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pv/viogpu.c b/sys/dev/pv/viogpu.c
index 7f3be0954b9..cce31d8780e 100644
--- a/sys/dev/pv/viogpu.c
+++ b/sys/dev/pv/viogpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: viogpu.c,v 1.9 2024/08/27 18:44:12 sf Exp $ */
+/* $OpenBSD: viogpu.c,v 1.10 2024/11/04 15:43:10 sf Exp $ */
/*
* Copyright (c) 2021-2023 joshua stein <jcs@openbsd.org>
@@ -369,7 +369,7 @@ viogpu_send_cmd(struct viogpu_softc *sc, void *cmd, size_t cmd_size, void *ret,
memcpy(sc->sc_cmd, cmd, cmd_size);
memset(sc->sc_cmd + cmd_size, 0, ret_size);
-#if VIRTIO_DEBUG
+#if VIRTIO_DEBUG >= 3
printf("%s: [%ld -> %ld]: ", __func__, cmd_size, ret_size);
for (int i = 0; i < cmd_size; i++) {
printf(" %02x", ((unsigned char *)sc->sc_cmd)[i]);