aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ntb/ntb_transport.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ntb/ntb_transport.c')
-rw-r--r--sys/dev/ntb/ntb_transport.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ntb/ntb_transport.c b/sys/dev/ntb/ntb_transport.c
index d6bccfb0f08c..90420db0b9aa 100644
--- a/sys/dev/ntb/ntb_transport.c
+++ b/sys/dev/ntb/ntb_transport.c
@@ -52,6 +52,7 @@ __FBSDID("$FreeBSD$");
#include <sys/module.h>
#include <sys/mutex.h>
#include <sys/queue.h>
+#include <sys/sbuf.h>
#include <sys/sysctl.h>
#include <sys/taskqueue.h>
@@ -576,12 +577,11 @@ ntb_transport_print_child(device_t dev, device_t child)
}
static int
-ntb_transport_child_location_str(device_t dev, device_t child, char *buf,
- size_t buflen)
+ntb_transport_child_location(device_t dev, device_t child, struct sbuf *sb)
{
struct ntb_transport_child *nc = device_get_ivars(child);
- snprintf(buf, buflen, "consumer=%d", nc->consumer);
+ sbuf_printf(sb, "consumer=%d", nc->consumer);
return (0);
}
@@ -1684,7 +1684,7 @@ static device_method_t ntb_transport_methods[] = {
DEVMETHOD(device_attach, ntb_transport_attach),
DEVMETHOD(device_detach, ntb_transport_detach),
/* Bus interface */
- DEVMETHOD(bus_child_location_str, ntb_transport_child_location_str),
+ DEVMETHOD(bus_child_location, ntb_transport_child_location),
DEVMETHOD(bus_print_child, ntb_transport_print_child),
DEVMETHOD_END
};