remove extra snprintf arguments to fix build
authorjsg <jsg@openbsd.org>
Wed, 15 May 2024 04:36:28 +0000 (04:36 +0000)
committerjsg <jsg@openbsd.org>
Wed, 15 May 2024 04:36:28 +0000 (04:36 +0000)
usps(4) is not included in any kernel config

sys/dev/usb/usps.c

index 12cde09..f54e5fe 100644 (file)
@@ -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 <yuo@nui.org>
@@ -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);