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:
parent
3df058ffaf
commit
c0dca72a18
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=286909
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user