Date: Wed, 29 Jan 2014 16:24:50 +0000 (UTC) From: Nick Hibma <n_hibma@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r261270 - head/sys/dev/usb Message-ID: <201401291624.s0TGOo5k033097@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: n_hibma Date: Wed Jan 29 16:24:50 2014 New Revision: 261270 URL: http://svnweb.freebsd.org/changeset/base/261270 Log: Fix the ordering of the arguments to printf in uhub_child_location_string(). This produced bogus information in dev.<USB driver>.<id>.%location output from sysctl. MFC after: 2 weeks Modified: head/sys/dev/usb/usb_hub.c Modified: head/sys/dev/usb/usb_hub.c ============================================================================== --- head/sys/dev/usb/usb_hub.c Wed Jan 29 15:50:01 2014 (r261269) +++ head/sys/dev/usb/usb_hub.c Wed Jan 29 16:24:50 2014 (r261270) @@ -1597,8 +1597,9 @@ uhub_child_location_string(device_t pare goto done; } snprintf(buf, buflen, "bus=%u hubaddr=%u port=%u devaddr=%u interface=%u", + device_get_unit(res.udev->bus->bdev), (res.udev->parent_hub != NULL) ? res.udev->parent_hub->device_index : 0, - res.portno, device_get_unit(res.udev->bus->bdev), + res.portno, res.udev->device_index, res.iface_index); done: mtx_unlock(&Giant);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401291624.s0TGOo5k033097>