From a6d2e78120b97e93aa33655986c3c72fce920250 Mon Sep 17 00:00:00 2001 From: jsg Date: Wed, 15 May 2024 04:36:28 +0000 Subject: [PATCH] remove extra snprintf arguments to fix build usps(4) is not included in any kernel config --- sys/dev/usb/usps.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/usb/usps.c b/sys/dev/usb/usps.c index 12cde0936d0..f54e5feaa83 100644 --- a/sys/dev/usb/usps.c +++ b/sys/dev/usb/usps.c @@ -1,4 +1,4 @@ -/* $OpenBSD: usps.c,v 1.10 2020/07/31 10:49:33 mglocker Exp $ */ +/* $OpenBSD: usps.c,v 1.11 2024/05/15 04:36:28 jsg Exp $ */ /* * Copyright (c) 2011 Yojiro UO @@ -242,11 +242,11 @@ usps_attach(struct device *parent, struct device *self, void *aux) sensor_attach(&sc->sc_sensordev, &sc->sc_total_sensor.min); sensor_attach(&sc->sc_sensordev, &sc->sc_total_sensor.max); (void)snprintf(sc->sc_total_sensor.ave.desc, - sizeof(sc->sc_total_sensor.ave.desc), "total (average)", i); + sizeof(sc->sc_total_sensor.ave.desc), "total (average)"); (void)snprintf(sc->sc_total_sensor.min.desc, - sizeof(sc->sc_total_sensor.ave.desc), "total (min)", i); + sizeof(sc->sc_total_sensor.ave.desc), "total (min)"); (void)snprintf(sc->sc_total_sensor.max.desc, - sizeof(sc->sc_total_sensor.ave.desc), "total (max)", i); + sizeof(sc->sc_total_sensor.ave.desc), "total (max)"); sc->sc_sensortask = sensor_task_register(sc, usps_refresh, USPS_UPDATE_TICK); -- 2.20.1