1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Fix the use of plural in two cases that I missed on r285784.

This should cause no functional change.
This commit is contained in:
Luiz Otavio O Souza 2015-08-18 21:37:14 +00:00
parent 3df058ffaf
commit c0dca72a18
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=286909

View File

@ -386,7 +386,10 @@ gpiobus_probe_nomatch(device_t dev, device_t child)
devi = GPIOBUS_IVAR(child);
memset(pins, 0, sizeof(pins));
gpiobus_print_pins(devi, pins, sizeof(pins));
device_printf(dev, "<unknown device> at pin(s) %s", pins);
if (devi->npins > 1)
device_printf(dev, "<unknown device> at pins %s", pins);
else
device_printf(dev, "<unknown device> at pin %s", pins);
resource_list_print_type(&devi->rl, "irq", SYS_RES_IRQ, "%ld");
printf("\n");
}
@ -422,7 +425,10 @@ gpiobus_child_location_str(device_t bus, device_t child, char *buf,
struct gpiobus_ivar *devi;
devi = GPIOBUS_IVAR(child);
strlcpy(buf, "pin(s)=", buflen);
if (devi->npins > 1)
strlcpy(buf, "pins=", buflen);
else
strlcpy(buf, "pin=", buflen);
gpiobus_print_pins(devi, buf, buflen);
return (0);