svn commit: r362492 - head/sys/dev/gpio

Andriy Gapon avg at FreeBSD.org
Mon Jun 22 10:32:41 UTC 2020


Author: avg
Date: Mon Jun 22 10:32:41 2020
New Revision: 362492
URL: https://svnweb.freebsd.org/changeset/base/362492

Log:
  gpiobus_release_pin: remove incorrect prefix from error messages
  
  It's interesting that similar messages from gpiobus_acquire_pin never
  had any prefix while gpiobus_release_pin messages were prefixed with
  "gpiobus_acquire_pin".
  Anyway, the prefix is not that useful and can be deduced from context.
  
  MFC after:	2 weeks

Modified:
  head/sys/dev/gpio/gpiobus.c

Modified: head/sys/dev/gpio/gpiobus.c
==============================================================================
--- head/sys/dev/gpio/gpiobus.c	Mon Jun 22 10:01:24 2020	(r362491)
+++ head/sys/dev/gpio/gpiobus.c	Mon Jun 22 10:32:41 2020	(r362492)
@@ -421,13 +421,13 @@ gpiobus_release_pin(device_t bus, uint32_t pin)
 	/* Consistency check. */
 	if (pin >= sc->sc_npins) {
 		device_printf(bus,
-		    "gpiobus_acquire_pin: invalid pin %d, max=%d\n",
+		    "invalid pin %d, max=%d\n",
 		    pin, sc->sc_npins - 1);
 		return (-1);
 	}
 
 	if (!sc->sc_pins[pin].mapped) {
-		device_printf(bus, "gpiobus_acquire_pin: pin %d is not mapped\n", pin);
+		device_printf(bus, "pin %d is not mapped\n", pin);
 		return (-1);
 	}
 	sc->sc_pins[pin].mapped = 0;


More information about the svn-src-all mailing list